Mercurial > vim
diff src/normal.c @ 29944:34c5647efe7a v9.0.0310
patch 9.0.0310: output of :messages dissappears when cmdheight is zero
Commit: https://github.com/vim/vim/commit/b849c82851192cf14cd92b78d83d90ca432332ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 28 22:46:21 2022 +0100
patch 9.0.0310: output of :messages dissappears when cmdheight is zero
Problem: Output of :messages dissappears when cmdheight is zero.
Solution: Do not use the messages window for :messages. Make Esc close the
messages window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 00:00:04 +0200 |
parents | 31c598083364 |
children | 29e4cd9e66de |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -6820,7 +6820,14 @@ nv_esc(cmdarg_T *cap) redraw_curbuf_later(UPD_INVERTED); } else if (no_reason) - vim_beep(BO_ESC); + { +#ifdef HAS_MESSAGE_WINDOW + if (popup_message_win_visible()) + popup_hide_message_win(); + else +#endif + vim_beep(BO_ESC); + } clearop(cap->oap); // A CTRL-C is often used at the start of a menu. When 'insertmode' is