diff options
| author | Karl Heuer | 1999-06-12 03:50:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-06-12 03:50:37 +0000 |
| commit | a9a679b70ee79a68f2865c60572baa8acf6d44a5 (patch) | |
| tree | a1f1568cd5b11bf1a69510b963e58ada2e900cb4 /src | |
| parent | 31d4844a6a48c8122021faeb1a69a939d7f3cb76 (diff) | |
| download | emacs-a9a679b70ee79a68f2865c60572baa8acf6d44a5.tar.gz emacs-a9a679b70ee79a68f2865c60572baa8acf6d44a5.zip | |
(compute_motion): Fix boundary case.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 9528894baf2..5e5c1a0a68d 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1418,7 +1418,9 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 1418 | /* Skip any number of invisible lines all at once */ | 1418 | /* Skip any number of invisible lines all at once */ |
| 1419 | do | 1419 | do |
| 1420 | { | 1420 | { |
| 1421 | pos = find_before_next_newline (pos, to, 1) + 1; | 1421 | pos = find_before_next_newline (pos, to, 1); |
| 1422 | if (pos < to) | ||
| 1423 | pos++; | ||
| 1422 | pos_byte = CHAR_TO_BYTE (pos); | 1424 | pos_byte = CHAR_TO_BYTE (pos); |
| 1423 | } | 1425 | } |
| 1424 | while (pos < to | 1426 | while (pos < to |