diff options
author | James McCoy <jamessan@jamessan.com> | 2017-01-12 06:45:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 06:45:03 -0500 |
commit | 50d0d891299c111c5e349c084ef146facfaad009 (patch) | |
tree | 9e8890cb34ea5178900a37df8a61fbc2711c0f73 /src/nvim/ex_getln.c | |
parent | 207ba359b0127fa5893b980abcb9186ffec1879c (diff) | |
parent | f2dff864934eeb4eaefee577fbdcc5e4969c3864 (diff) | |
download | rneovim-50d0d891299c111c5e349c084ef146facfaad009.tar.gz rneovim-50d0d891299c111c5e349c084ef146facfaad009.tar.bz2 rneovim-50d0d891299c111c5e349c084ef146facfaad009.zip |
Merge pull request #5932 from jamessan/icm-fixes
inccommand: Ignore errors during preview and make cmd_can_preview stricter
Diffstat (limited to 'src/nvim/ex_getln.c')
-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 7c725179dd..dba7a73814 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1607,7 +1607,9 @@ static int command_line_changed(CommandLineState *s) // - Update the screen while the effects are in place. // - Immediately undo the effects. State |= CMDPREVIEW; + emsg_silent++; // Block error reporting as the command may be incomplete do_cmdline(ccline.cmdbuff, NULL, NULL, DOCMD_KEEPLINE|DOCMD_NOWAIT); + emsg_silent--; // Unblock error reporting // Restore the window "view". curwin->w_cursor = s->old_cursor; |