File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1785,13 +1785,16 @@ getcmdline_int(
17851785
17861786 if (c == K_COMMAND || c == K_SCRIPT_COMMAND )
17871787 {
1788+ int clen = ccline .cmdlen ;
17881789 int cc_count = aucmd_cmdline_changed_count ;
17891790
17901791 if (do_cmdkey_command (c , DOCMD_NOWAIT ) == OK )
17911792 {
1792- // Do not trigger CmdlineChanged below if the <Cmd> mapping
1793- // already did that.
1794- if (cc_count != aucmd_cmdline_changed_count )
1793+ // Do not trigger CmdlineChanged below if:
1794+ // - the length of the command line didn't change
1795+ // - the <Cmd> mapping already triggered the event
1796+ if (clen == ccline .cmdlen
1797+ || cc_count != aucmd_cmdline_changed_count )
17951798 trigger_cmdlinechanged = FALSE;
17961799 goto cmdline_changed ;
17971800 }
Original file line number Diff line number Diff line change @@ -695,6 +695,8 @@ static char *(features[]) =
695695
696696static int included_patches [] =
697697{ /* Add new patch number below this line */
698+ /**/
699+ 1040 ,
698700/**/
699701 1039 ,
700702/**/
You can’t perform that action at this time.
0 commit comments