Problem: Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution: Reset 'lazyredraw' temporarily. (closes #7687)
{
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;
temp = RedrawingDisabled;
RedrawingDisabled = 0;
+ // avoid calling update_screen() in vgetorpeek()
+ p_lz = FALSE;
+
if (new_start != NULL)
{
// There already was a substitution, we would
msg_didout = FALSE; // don't scroll up
msg_col = 0;
gotocmdline(TRUE);
+ p_lz = save_p_lz;
// restore the line
if (orig_line != NULL)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2361,
/**/
2360,
/**/