To: vim_dev@googlegroups.com Subject: Patch 8.2.2361 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///