# HG changeset patch # User Gerd Moellmann # Date 937486333 0 # Node ID fcb92c26acf2dd206fa8baa892516cdf953066b3 # Parent 0242362bb1fe2b09ee2e7ec841f0530fdcefb0b2 (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. diff -r 0242362bb1fe -r fcb92c26acf2 src/dispnew.c --- 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)