2001-01-03 Gerd Moellmann <gerd@gnu.org>
+ * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
+ short cut at the start of the function. Add an assertion.
+ (reseat_at_next_visible_line_start): Add an assertion.
+
* window.c (Frecenter): When changing the window start, set the
window's window_end_valid to nil.
(Fwindow_end): Fix window-end computation when UPDATE is non-nil.
if (it->what == IT_CHARACTER && it->c == '\n')
{
set_iterator_to_next (it, 0);
+ it->c = 0;
return 1;
}
}
it->selective = old_selective;
+ xassert (!newline_found_p || FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n');
return newline_found_p;
}
more than the value of IT->selective. */
if (it->selective > 0)
while (IT_CHARPOS (*it) < ZV
- && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it),
+ && indented_beyond_p (IT_CHARPOS (*it), IT_BYTEPOS (*it),
it->selective))
- newline_found_p = forward_to_next_line_start (it, &skipped_p);
+ {
+ xassert (FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n');
+ newline_found_p = forward_to_next_line_start (it, &skipped_p);
+ }
/* Position on the newline if that's what's requested. */
if (on_newline_p && newline_found_p)