Prevent prompts during inccommand previews

For example, "Backwards range given, OK to swap (y/n)?" on each keypress.
This commit is contained in:
Rob Pilling
2019-10-29 22:32:25 +00:00
parent d52d782389
commit d04ab11f24
2 changed files with 45 additions and 0 deletions

View File

@@ -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".