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:
parent
bf1c0ba101
commit
2e8907d397
1 changed files with 9 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue