vim-patch:8.2.3550: completion() does not work properly (#16112)

* vim-patch:8.2.3550: completion() does not work properly

Problem:    completion() does not work properly.
Solution:   Set xp_line and add WILD_HOME_REPLACE. (Shougo Matsushita,
            closes vim/vim#9016)
ae38a9db77

Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
This commit is contained in:
Christian Clason
2021-10-21 17:46:24 +02:00
committed by GitHub
parent d0f10a7add
commit eaa03b7181
3 changed files with 17 additions and 1 deletions

View File

@@ -2915,6 +2915,7 @@ const char *set_one_cmd_context(expand_T *xp, const char *buff)
ExpandInit(xp);
xp->xp_pattern = (char_u *)buff;
xp->xp_line = (char_u *)buff;
xp->xp_context = EXPAND_COMMANDS; // Default until we get past command
ea.argt = 0;