diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-16 14:34:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-16 14:34:45 +0100 |
commit | 7c886db915035bc064ca307f02c34ae9d99cc733 (patch) | |
tree | c0e5e45792d1a4d9d968991e6bb11115c9284364 /src/ex_cmds.c | |
parent | a3b494d6afa79aedce42fa4ecc7ef0dbae79e37e (diff) | |
download | vim-git-7c886db915035bc064ca307f02c34ae9d99cc733.tar.gz |
patch 8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'v8.2.2361
Problem: Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution: Reset 'lazyredraw' temporarily. (closes #7687)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index a3226d25c..545e06dbd 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4158,6 +4158,7 @@ ex_substitute(exarg_T *eap) { char_u *orig_line = NULL; int len_change = 0; + int save_p_lz = p_lz; #ifdef FEAT_FOLDING int save_p_fen = curwin->w_p_fen; @@ -4168,6 +4169,9 @@ ex_substitute(exarg_T *eap) temp = RedrawingDisabled; RedrawingDisabled = 0; + // avoid calling update_screen() in vgetorpeek() + p_lz = FALSE; + if (new_start != NULL) { // There already was a substitution, we would @@ -4243,6 +4247,7 @@ ex_substitute(exarg_T *eap) msg_didout = FALSE; // don't scroll up msg_col = 0; gotocmdline(TRUE); + p_lz = save_p_lz; // restore the line if (orig_line != NULL) |