int end_wildmenu;
int prev_cmdpos = ccline.cmdpos;
+ VIM_CLEAR(prev_cmdbuff);
+
redir_off = TRUE; // Don't redirect the typed command.
// Repeated, because a ":redir" inside
// completion may switch it on.
#ifdef FEAT_SEARCH_EXTRA
if (!is_state.incsearch_postponed)
- {
- VIM_CLEAR(prev_cmdbuff);
continue;
- }
#endif
cmdline_changed:
ccline.cmdbuff, prev_cmdpos) != 0)))
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED);
- VIM_CLEAR(prev_cmdbuff);
-
// Trigger CursorMovedC autocommands.
if (ccline.cmdpos != prev_cmdpos)
trigger_cmd_autocmd(cmdline_type, EVENT_CURSORMOVEDC);