aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-01-11 14:52:11 -0500
committerJames McCoy <jamessan@jamessan.com>2017-01-11 21:05:02 -0500
commitdcd77c64ef7865f47b9a6e86da033da8aaa3100c (patch)
treebbe41c876f4fb0ba48650f9e4bbf011dd130167c /src/nvim/ex_cmds.c
parent207ba359b0127fa5893b980abcb9186ffec1879c (diff)
downloadrneovim-dcd77c64ef7865f47b9a6e86da033da8aaa3100c.tar.gz
rneovim-dcd77c64ef7865f47b9a6e86da033da8aaa3100c.tar.bz2
rneovim-dcd77c64ef7865f47b9a6e86da033da8aaa3100c.zip
inccommand: Suppress error reporting when previewing commands
Closes #5912
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index b1a17e8c44..b1404abc05 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -6093,7 +6093,6 @@ void ex_substitute(exarg_T *eap)
int save_w_p_cul = curwin->w_p_cul;
int save_w_p_cuc = curwin->w_p_cuc;
- emsg_off++; // No error messages during command preview.
curbuf->b_p_ul = LONG_MAX; // make sure we can undo all changes
curwin->w_p_cul = false; // Disable 'cursorline'
curwin->w_p_cuc = false; // Disable 'cursorcolumn'
@@ -6120,6 +6119,5 @@ void ex_substitute(exarg_T *eap)
restore_search_patterns();
win_size_restore(&save_view);
ga_clear(&save_view);
- emsg_off--;
unblock_autocmds();
}