Mercurial > vim
comparison src/ex_docmd.c @ 29938:935717599faa v9.0.0307
patch 9.0.0307: :echomsg doesn't work properly with cmdheight=0
Commit: https://github.com/vim/vim/commit/134b86553c12c46e0ae7d534f6fe65e8ba2d50bc
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 28 21:36:43 2022 +0100
patch 9.0.0307: :echomsg doesn't work properly with cmdheight=0
Problem: :echomsg doesn't work properly with cmdheight=0.
Solution: Improve scrolling and displaying.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 28 Aug 2022 22:45:03 +0200 |
parents | 31c598083364 |
children | 4fcf816aa806 |
comparison
equal
deleted
inserted
replaced
29937:7d487d8594d3 | 29938:935717599faa |
---|---|
8368 p_lz = p; | 8368 p_lz = p; |
8369 | 8369 |
8370 // After drawing the statusline screen_attr may still be set. | 8370 // After drawing the statusline screen_attr may still be set. |
8371 screen_stop_highlight(); | 8371 screen_stop_highlight(); |
8372 | 8372 |
8373 // Reset msg_didout, so that a message that's there is overwritten. | 8373 #ifdef HAS_MESSAGE_WINDOW |
8374 msg_didout = FALSE; | 8374 if (!use_message_window()) // append messages in the message window |
8375 msg_col = 0; | 8375 #endif |
8376 { | |
8377 // Reset msg_didout, so that a message that's there is overwritten. | |
8378 msg_didout = FALSE; | |
8379 msg_col = 0; | |
8380 } | |
8376 | 8381 |
8377 // No need to wait after an intentional redraw. | 8382 // No need to wait after an intentional redraw. |
8378 need_wait_return = FALSE; | 8383 need_wait_return = FALSE; |
8379 | 8384 |
8380 // When invoked from a callback or autocmd the command line may be active. | 8385 // When invoked from a callback or autocmd the command line may be active. |