diff options
| author | Richard M. Stallman | 1993-06-15 05:27:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-15 05:27:54 +0000 |
| commit | 0df8950e08c052ee296aa21891931e08cb0ec759 (patch) | |
| tree | fbad591a930643e9ae990bac3f1628916056c932 /src/intervals.c | |
| parent | 44a53673e892ac18cfbf6298a2a4983f402880b8 (diff) | |
| download | emacs-0df8950e08c052ee296aa21891931e08cb0ec759.tar.gz emacs-0df8950e08c052ee296aa21891931e08cb0ec759.zip | |
(set_point): When moving over invis chars,
don't screw up at end of buffer.
Diffstat (limited to 'src/intervals.c')
| -rw-r--r-- | src/intervals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intervals.c b/src/intervals.c index 7809c37505b..e6254cbdf6a 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1315,7 +1315,10 @@ set_point (position, buffer) | |||
| 1315 | { | 1315 | { |
| 1316 | toprev = to; | 1316 | toprev = to; |
| 1317 | to = next_interval (to); | 1317 | to = next_interval (to); |
| 1318 | position = to->position; | 1318 | if (NULL_INTERVAL_P (to)) |
| 1319 | position = BUF_ZV (buffer); | ||
| 1320 | else | ||
| 1321 | position = to->position; | ||
| 1319 | } | 1322 | } |
| 1320 | 1323 | ||
| 1321 | buffer->text.pt = position; | 1324 | buffer->text.pt = position; |