Mercurial > emacs
comparison src/dispnew.c @ 6645:ba0c1af167e6
(verify_charstarts): Count right for continued lines.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 03 Apr 1994 02:04:38 +0000 |
parents | 2fda5dd17356 |
children | c7eefaee311c |
comparison
equal
deleted
inserted
replaced
6644:8e2379ce4fcb | 6645:ba0c1af167e6 |
---|---|
958 abort (); | 958 abort (); |
959 | 959 |
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 |
967 /* On discovering that the redisplay for a window was no good, | 975 /* On discovering that the redisplay for a window was no good, |
968 cancel the columns of that window, so that when the window is | 976 cancel the columns of that window, so that when the window is |