diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-26 21:23:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 21:23:43 +0800 |
commit | be693462d5a5fd696b46ea4ea854c924421089b4 (patch) | |
tree | 47cbf4e34812c9e6458e78a62376a779492de7a7 /src | |
parent | c7e74f78896ffe933e9e411563eaaaacca2622ce (diff) | |
download | rneovim-be693462d5a5fd696b46ea4ea854c924421089b4.tar.gz rneovim-be693462d5a5fd696b46ea4ea854c924421089b4.tar.bz2 rneovim-be693462d5a5fd696b46ea4ea854c924421089b4.zip |
fix(ui): allow redrawing statusline when msgsep is used (#20337)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/nvim/ex_getln.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 7ece195374..96f98b92ca 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6088,7 +6088,7 @@ static void ex_redrawstatus(exarg_T *eap) } else { status_redraw_curbuf(); } - if (msg_scrolled && (State & MODE_CMDLINE)) { + if (msg_scrolled && !msg_use_msgsep() && (State & MODE_CMDLINE)) { return; // redraw later } diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index bc31f5a6cf..4b54b58ac1 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -774,11 +774,11 @@ static uint8_t *command_line_enter(int firstc, long count, int indent, bool init // Redraw the statusline in case it uses the current mode using the mode() // function. - if (!cmd_silent && msg_scrolled == 0) { + if (!cmd_silent && (msg_scrolled == 0 || msg_use_msgsep())) { bool found_one = false; FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { - if (*p_stl != NUL || *wp->w_p_stl != NUL) { + if (*p_stl != NUL || *wp->w_p_stl != NUL || *p_wbr != NUL || *wp->w_p_wbr != NUL) { wp->w_redr_status = true; found_one = true; } |