changeset 60187:63a82f5b98c6

(move_it_vertically_backward): Eliminate two xasserts. I think those asserts are bogus if buffer contains invisible text or images.
author Kim F. Storm <storm@cua.dk>
date Mon, 21 Feb 2005 09:01:04 +0000
parents 62817df1cfe7
children d9ca15a0952c
files src/xdisp.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Feb 21 09:00:43 2005 +0000
+++ b/src/xdisp.c	Mon Feb 21 09:01:04 2005 +0000
@@ -6318,7 +6318,11 @@
 	 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 @@
 	      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
 	}
     }
 }