diff options
author | Rob Pilling <robpilling@gmail.com> | 2019-10-29 22:32:25 +0000 |
---|---|---|
committer | Rob Pilling <robpilling@gmail.com> | 2019-10-31 19:22:22 +0000 |
commit | d04ab11f24521e60278a0daed9a7d5abeeaf6f4f (patch) | |
tree | 87db42f0c6a51b518ae6e273b95a3a4198ec8a5b /src | |
parent | d52d7823898c7fee0121c4d6da730a0530bf8c50 (diff) | |
download | rneovim-d04ab11f24521e60278a0daed9a7d5abeeaf6f4f.tar.gz rneovim-d04ab11f24521e60278a0daed9a7d5abeeaf6f4f.tar.bz2 rneovim-d04ab11f24521e60278a0daed9a7d5abeeaf6f4f.zip |
Prevent prompts during inccommand previews
For example, "Backwards range given, OK to swap (y/n)?" on each keypress.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index f2665ca0b5..9e2671ca5e 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1927,7 +1927,9 @@ static int command_line_changed(CommandLineState *s) // - Immediately undo the effects. State |= CMDPREVIEW; emsg_silent++; // Block error reporting as the command may be incomplete + msg_silent++; // Block messages, namely ones that prompt do_cmdline(ccline.cmdbuff, NULL, NULL, DOCMD_KEEPLINE|DOCMD_NOWAIT); + msg_silent--; // Unblock messages emsg_silent--; // Unblock error reporting // Restore the window "view". |