aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-03 02:04:38 +0000
committerRichard M. Stallman1994-04-03 02:04:38 +0000
commit2e8907d3976eab6cd7eff620c050e39503171ffc (patch)
tree26662ac004788cc8ecbcf5bd5ac8ce1d56fe3029 /src
parentbf1c0ba10116ea4da86fec854ba9da4380e3ba39 (diff)
downloademacs-2e8907d3976eab6cd7eff620c050e39503171ffc.tar.gz
emacs-2e8907d3976eab6cd7eff620c050e39503171ffc.zip
(verify_charstarts): Count right for continued lines.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c10
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