# HG changeset patch # User Richard M. Stallman # Date 740122074 0 # Node ID 5ada670e1fd88df61d6c01cff8669679f704a55f # Parent c1c105ffdd0ca094a7b82c19a1ac8d7ea3e74c82 (set_point): When moving over invis chars, don't screw up at end of buffer. diff -r c1c105ffdd0c -r 5ada670e1fd8 src/intervals.c --- a/src/intervals.c Mon Jun 14 22:58:54 1993 +0000 +++ b/src/intervals.c Tue Jun 15 05:27:54 1993 +0000 @@ -1315,7 +1315,10 @@ { toprev = to; to = next_interval (to); - position = to->position; + if (NULL_INTERVAL_P (to)) + position = BUF_ZV (buffer); + else + position = to->position; } buffer->text.pt = position;