Patch 8.2.2361
Problem: Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution: Reset 'lazyredraw' temporarily. (closes #7687)
Files: src/ex_cmds.c
*** ../vim-8.2.2360/src/ex_cmds.c 2021-01-15 16:22:48.708565105 +0100
--- src/ex_cmds.c 2021-01-16 14:32:01.240092880 +0100
***************
*** 4158,4163 ****
--- 4158,4164 ----
{
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,4173 ****
--- 4169,4177 ----
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,4248 ****
--- 4247,4253 ----
msg_didout = FALSE; // don't scroll up
msg_col = 0;
gotocmdline(TRUE);
+ p_lz = save_p_lz;
// restore the line
if (orig_line != NULL)
*** ../vim-8.2.2360/src/version.c 2021-01-16 13:43:27.680058930 +0100
--- src/version.c 2021-01-16 14:34:12.759820926 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2361,
/**/
--
If you feel lonely, try schizophrenia.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202101161335.10GDZM3c272926%40masaka.moolenaar.net.