diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-25 03:27:24 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-14 02:22:19 +0200 |
commit | dd9554a8205c18ab4194d21445bb1fe6c960229f (patch) | |
tree | f45ffc483e7359594d6e187d91433ab4cb38f407 /src | |
parent | 2c34a10aa25b38a8cf3b0c21a668b184883b4cff (diff) | |
download | rneovim-dd9554a8205c18ab4194d21445bb1fe6c960229f.tar.gz rneovim-dd9554a8205c18ab4194d21445bb1fe6c960229f.tar.bz2 rneovim-dd9554a8205c18ab4194d21445bb1fe6c960229f.zip |
inccommand: Ignore :redraw during preview
closes #9777
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index c452129719..4d958b201a 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -7807,11 +7807,12 @@ static void ex_redir(exarg_T *eap) redir_off = FALSE; } -/* - * ":redraw": force redraw - */ +/// ":redraw": force redraw static void ex_redraw(exarg_T *eap) { + if (State & CMDPREVIEW) { + return; // Ignore :redraw during 'inccommand' preview. #9777 + } int r = RedrawingDisabled; int p = p_lz; @@ -7840,11 +7841,12 @@ static void ex_redraw(exarg_T *eap) ui_flush(); } -/* - * ":redrawstatus": force redraw of status line(s) - */ +/// ":redrawstatus": force redraw of status line(s) static void ex_redrawstatus(exarg_T *eap) { + if (State & CMDPREVIEW) { + return; // Ignore :redrawstatus during 'inccommand' preview. #9777 + } int r = RedrawingDisabled; int p = p_lz; |