neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 18b457ebbb46010082c8bed2d30dfa4b7c51e2de
parent 76b4b1977ba3f3a1f630468a2ce89f47f2cedec4
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Mon, 15 Aug 2022 20:19:37 +0800

fix(redraw): make sure :redraw! redraws command line

In Vim :redraw! uses CLEAR, which calls screenclear(), which sets
redraw_cmdline. In Nvim :redraw! uses NOT_VALID, which does not set
redraw_cmdline automatically, so set it explicitly.

Diffstat:
Msrc/nvim/ex_docmd.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c @@ -6994,6 +6994,7 @@ static void ex_redraw(exarg_T *eap) update_topline(curwin); if (eap->forceit) { redraw_all_later(NOT_VALID); + redraw_cmdline = true; } update_screen(eap->forceit ? NOT_VALID : VIsual_active ? INVERTED : 0);