1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 03:06:23 -08:00

(verify_charstarts): Count right for continued lines.

This commit is contained in:
Richard M. Stallman 1994-04-03 02:04:38 +00:00
parent bf1c0ba101
commit 2e8907d397

View file

@ -960,7 +960,15 @@ verify_charstarts (w)
for (j = left; j < right; j++)
if (charstart[j] > 0)
last = charstart[j];
next_line = last + (BUF_ZV (XBUFFER (w->buffer)) != last);
/* Record where the next line should start. */
next_line = last;
if (BUF_ZV (XBUFFER (w->buffer)) != last)
{
/* If there's a newline between the two lines, count that. */
int endchar = *BUF_CHAR_ADDRESS (XBUFFER (w->buffer), last);
if (endchar == '\n')
next_line++;
}
}
}