From d782c34829ed3aca9e4debb63b30568178407486 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 21 Feb 2005 09:01:04 +0000 Subject: [PATCH] (move_it_vertically_backward): Eliminate two xasserts. I think those asserts are bogus if buffer contains invisible text or images. --- src/xdisp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 85044a3713d..eb1a7d75fca 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -6318,7 +6318,11 @@ move_it_vertically_backward (it, dy) value of nlines is > 0 if continuation lines were involved. */ if (nlines > 0) move_it_by_lines (it, nlines, 1); +#if 0 + /* I think this assert is bogus if buffer contains + invisible text or images. KFS. */ xassert (IT_CHARPOS (*it) <= start_pos); +#endif } else { @@ -6367,7 +6371,11 @@ move_it_vertically_backward (it, dy) while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); } +#if 0 + /* I think this assert is bogus if buffer contains + invisible text or images. KFS. */ xassert (IT_CHARPOS (*it) >= BEGV); +#endif } } } -- 2.39.2