diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-16 06:07:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 06:07:01 +0800 |
commit | 3cd5ef63fd17a4eb294856360039803f31a10a76 (patch) | |
tree | 12fad468cc5026ef6b706a874b3d439ea57390e9 /src/nvim/usercmd.c | |
parent | e72c0cd92090c1fc1e5665a060b3e1d0094d7f30 (diff) | |
download | rneovim-3cd5ef63fd17a4eb294856360039803f31a10a76.tar.gz rneovim-3cd5ef63fd17a4eb294856360039803f31a10a76.tar.bz2 rneovim-3cd5ef63fd17a4eb294856360039803f31a10a76.zip |
vim-patch:9.0.1714: getcompletion() "cmdline" fails after :autocmd (#24727)
Problem: getcompletion() "cmdline" fails after :autocmd
Solution: Use set_cmd_context() instead of set_one_cmd_context().
closes: vim/vim#12804
https://github.com/vim/vim/commit/e4c79d36150431ffb97cb8952ec482af2e57f228
Diffstat (limited to 'src/nvim/usercmd.c')
-rw-r--r-- | src/nvim/usercmd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nvim/usercmd.c b/src/nvim/usercmd.c index b9d4308b99..65720342ce 100644 --- a/src/nvim/usercmd.c +++ b/src/nvim/usercmd.c @@ -296,9 +296,6 @@ const char *set_context_in_user_cmdarg(const char *cmd FUNC_ATTR_UNUSED, const c return set_context_in_menu_cmd(xp, cmd, (char *)arg, forceit); } if (context == EXPAND_COMMANDS) { - if (xp->xp_context == EXPAND_NOTHING) { - xp->xp_context = context; - } return arg; } if (context == EXPAND_MAPPINGS) { |