To: vim_dev@googlegroups.com Subject: Patch 8.2.2853 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2853 (after 8.2.2851) Problem: Window is not updated after using mapping. Solution: So jump to cmdline_changed but skip autocommand. Files: src/ex_getln.c *** ../vim-8.2.2852/src/ex_getln.c 2021-05-15 13:19:12.195816386 +0200 --- src/ex_getln.c 2021-05-15 15:06:31.097318936 +0200 *************** *** 1734,1739 **** --- 1734,1741 ---- */ for (;;) { + int trigger_cmdlinechanged = TRUE; + redir_off = TRUE; // Don't redirect the typed command. // Repeated, because a ":redir" inside // completion may switch it on. *************** *** 1764,1770 **** if (do_cmdline(NULL, getcmdkeycmd, NULL, DOCMD_NOWAIT) == OK) { if (clen == ccline.cmdlen) ! goto cmdline_not_changed; goto cmdline_changed; } } --- 1766,1772 ---- if (do_cmdline(NULL, getcmdkeycmd, NULL, DOCMD_NOWAIT) == OK) { if (clen == ccline.cmdlen) ! trigger_cmdlinechanged = FALSE; goto cmdline_changed; } } *************** *** 2380,2387 **** if (is_state.winid != curwin->w_id) init_incsearch_state(&is_state); #endif ! // Trigger CmdlineChanged autocommands. ! trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED); #ifdef FEAT_SEARCH_EXTRA if (xpc.xp_context == EXPAND_NOTHING) --- 2382,2390 ---- if (is_state.winid != curwin->w_id) init_incsearch_state(&is_state); #endif ! if (trigger_cmdlinechanged) ! // Trigger CmdlineChanged autocommands. ! trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED); #ifdef FEAT_SEARCH_EXTRA if (xpc.xp_context == EXPAND_NOTHING) *** ../vim-8.2.2852/src/version.c 2021-05-15 14:25:32.047351264 +0200 --- src/version.c 2021-05-15 15:07:58.152961729 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2853, /**/ -- press CTRL-ALT-DEL for more information /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///