mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 21:36:05 +00:00
vim-patch:9.1.1338: Calling expand() interferes with cmdcomplete_info()
Problem: Calling expand() interferes with cmdcomplete_info()
(after 9.1.1329).
Solution: Only clear cmdline_orig when starting/ending cmdline mode
(zeertzjq).
closes: vim/vim#17192
ec270a5f55
This commit is contained in:
@@ -745,6 +745,7 @@ static uint8_t *command_line_enter(int firstc, int count, int indent, bool clear
|
||||
|
||||
ExpandInit(&s->xpc);
|
||||
ccline.xpc = &s->xpc;
|
||||
clear_cmdline_orig();
|
||||
|
||||
cmdmsg_rl = (curwin->w_p_rl && *curwin->w_p_rlc == 's'
|
||||
&& (s->firstc == '/' || s->firstc == '?'));
|
||||
@@ -901,6 +902,7 @@ static uint8_t *command_line_enter(int firstc, int count, int indent, bool clear
|
||||
|
||||
ExpandCleanup(&s->xpc);
|
||||
ccline.xpc = NULL;
|
||||
clear_cmdline_orig();
|
||||
|
||||
finish_incsearch_highlighting(s->gotesc, &s->is_state, false);
|
||||
|
||||
|
Reference in New Issue
Block a user