From d2d2ddaf52944302615f87b7a88ce06979656c04 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 16 Sep 1999 12:52:13 +0000 Subject: [PATCH] (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. --- src/dispnew.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dispnew.c b/src/dispnew.c index 87ad3de2e07..695c3f808f1 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3278,6 +3278,15 @@ direct_output_forward_char (n) 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) -- 2.39.5