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: #17192
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1343681aba
commit
ec270a5f55
@ -1663,6 +1663,7 @@ getcmdline_int(
|
||||
|
||||
ExpandInit(&xpc);
|
||||
ccline.xpc = &xpc;
|
||||
clear_cmdline_orig();
|
||||
|
||||
#ifdef FEAT_RIGHTLEFT
|
||||
if (curwin->w_p_rl && *curwin->w_p_rlc == 's'
|
||||
@ -2567,6 +2568,7 @@ returncmd:
|
||||
|
||||
ExpandCleanup(&xpc);
|
||||
ccline.xpc = NULL;
|
||||
clear_cmdline_orig();
|
||||
|
||||
#ifdef FEAT_SEARCH_EXTRA
|
||||
finish_incsearch_highlighting(gotesc, &is_state, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user