changeset 37667:e8ec6c4a8e8a

(try_window_id): Add some xasserts.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 10 May 2001 12:25:17 +0000
parents 16a7e84d5ff3
children cf76004c6076
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu May 10 11:54:15 2001 +0000
+++ b/src/xdisp.c	Thu May 10 12:25:17 2001 +0000
@@ -11655,6 +11655,7 @@
       w->window_end_bytepos = Z_BYTE - MATRIX_ROW_END_BYTEPOS (row);
       w->window_end_vpos
 	= make_number (MATRIX_ROW_VPOS (row, w->current_matrix));
+      xassert (w->window_end_bytepos >= 0);
     }
   else if (last_text_row_at_end)
     {
@@ -11664,6 +11665,7 @@
 	= Z_BYTE - MATRIX_ROW_END_BYTEPOS (last_text_row_at_end);
       w->window_end_vpos
 	= make_number (MATRIX_ROW_VPOS (last_text_row_at_end, desired_matrix));
+      xassert (w->window_end_bytepos >= 0);
     }
   else if (last_text_row)
     {
@@ -11676,6 +11678,7 @@
 	= Z_BYTE - MATRIX_ROW_END_BYTEPOS (last_text_row);
       w->window_end_vpos
 	= make_number (MATRIX_ROW_VPOS (last_text_row, desired_matrix));
+      xassert (w->window_end_bytepos >= 0);
     }
   else if (first_unchanged_at_end_row == NULL
 	   && last_text_row == NULL
@@ -11697,6 +11700,7 @@
       row = MATRIX_ROW (w->desired_matrix, vpos);
       w->window_end_pos = make_number (Z - MATRIX_ROW_END_CHARPOS (row));
       w->window_end_bytepos = Z_BYTE - MATRIX_ROW_END_BYTEPOS (row);
+      xassert (w->window_end_bytepos >= 0);
     }
   else
     abort ();