diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 68e9423fcbd..856659483a4 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -960,7 +960,15 @@ verify_charstarts (w) | |||
| 960 | for (j = left; j < right; j++) | 960 | for (j = left; j < right; j++) |
| 961 | if (charstart[j] > 0) | 961 | if (charstart[j] > 0) |
| 962 | last = charstart[j]; | 962 | last = charstart[j]; |
| 963 | next_line = last + (BUF_ZV (XBUFFER (w->buffer)) != last); | 963 | /* Record where the next line should start. */ |
| 964 | next_line = last; | ||
| 965 | if (BUF_ZV (XBUFFER (w->buffer)) != last) | ||
| 966 | { | ||
| 967 | /* If there's a newline between the two lines, count that. */ | ||
| 968 | int endchar = *BUF_CHAR_ADDRESS (XBUFFER (w->buffer), last); | ||
| 969 | if (endchar == '\n') | ||
| 970 | next_line++; | ||
| 971 | } | ||
| 964 | } | 972 | } |
| 965 | } | 973 | } |
| 966 | 974 | ||