changeset 25735:fcb92c26acf2

(direct_output_forward_char): Don't use this method if showing a message or a message was just cleared because we might need to resize the mini-window.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 16 Sep 1999 12:52:13 +0000
parents 0242362bb1fe
children 84179b4e7743
files src/dispnew.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Thu Sep 16 12:52:12 1999 +0000
+++ b/src/dispnew.c	Thu Sep 16 12:52:13 1999 +0000
@@ -3278,6 +3278,15 @@
   if (!NILP (Vshow_trailing_whitespace))
     return 0;
 
+  /* Give up if we are showing a message or just cleared the message
+     because we might need to resize the echo area window.  */
+  if (!NILP (echo_area_buffer[0]) || !NILP (echo_area_buffer[1]))
+    return 0;
+
+  /* Give up if we don't know where the cursor is.  */
+  if (w->cursor.vpos < 0)
+    return 0;
+
   row = MATRIX_ROW (w->current_matrix, w->cursor.vpos);
 
   if (PT <= MATRIX_ROW_START_BYTEPOS (row)