diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-23 06:40:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 06:40:26 +0800 |
commit | 3688735c2b63337ab8d8b12ac08b4e6e064e98a2 (patch) | |
tree | 648efd366587e9f3b17f81b2b451401c6f0dc90f /src/nvim | |
parent | 12c2c16acf7051d364d29cfd71f2542b0943d8e8 (diff) | |
download | rneovim-3688735c2b63337ab8d8b12ac08b4e6e064e98a2.tar.gz rneovim-3688735c2b63337ab8d8b12ac08b4e6e064e98a2.tar.bz2 rneovim-3688735c2b63337ab8d8b12ac08b4e6e064e98a2.zip |
fix(cmdline): don't redraw 'tabline' in Ex mode (#24123)
Redrawing of 'statusline' and 'winbar' are actually already inhibited by
RedawingDisabled in Ex mode.
In Vim there is a check for `msg_scrolled == 0` (which is false in Ex
mode) since Vim doesn't have msgsep. Add a `!exmode_active` check here
in Nvim instead.
Diffstat (limited to 'src/nvim')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 77b09a5f73..969023b70d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -791,7 +791,7 @@ static uint8_t *command_line_enter(int firstc, long count, int indent, bool clea // Redraw the statusline in case it uses the current mode using the mode() // function. - if (!cmd_silent) { + if (!cmd_silent && !exmode_active) { bool found_one = false; FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { |