Patch 8.2.2853 (after 8.2.2851)
Problem: Window is not updated after using <Cmd> 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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/202105151309.14FD9s0A3325562%40masaka.moolenaar.net.