summaryrefslogtreecommitdiff
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-13 18:38:48 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-13 18:38:48 +0200
commit4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6 (patch)
treea896c1eca248cbf2c8269c8d6b593406fbb43b18 /src/cmdexpand.c
parente70e12b32f193addae88ae8df933b04fc234550f (diff)
downloadvim-git-4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6.tar.gz
patch 8.2.2992: Vim9: completion for :disassemble is incompletev8.2.2992
Problem: Vim9: completion for :disassemble is incomplete. Solution: Recognize the "debug" and "profile" arguments.
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index ba31e928c..9b6d9aa81 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -1557,10 +1557,12 @@ set_one_cmd_context(
case CMD_function:
case CMD_delfunction:
- case CMD_disassemble:
xp->xp_context = EXPAND_USER_FUNC;
xp->xp_pattern = arg;
break;
+ case CMD_disassemble:
+ set_context_in_disassemble_cmd(xp, arg);
+ break;
case CMD_echohl:
set_context_in_echohl_cmd(xp, arg);
@@ -2120,6 +2122,7 @@ ExpandFromContext(
{EXPAND_USER_VARS, get_user_var_name, FALSE, TRUE},
{EXPAND_FUNCTIONS, get_function_name, FALSE, TRUE},
{EXPAND_USER_FUNC, get_user_func_name, FALSE, TRUE},
+ {EXPAND_DISASSEMBLE, get_disassemble_argument, FALSE, TRUE},
{EXPAND_EXPRESSION, get_expr_name, FALSE, TRUE},
# endif
# ifdef FEAT_MENU