Mercurial > vim
diff src/cmdexpand.c @ 24909:09d222e89a84 v8.2.2992
patch 8.2.2992: Vim9: completion for :disassemble is incomplete
Commit: https://github.com/vim/vim/commit/4ee9d8e04daa97a3d0a19d7d2eed76b7721301e6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 13 18:38:48 2021 +0200
patch 8.2.2992: Vim9: completion for :disassemble is incomplete
Problem: Vim9: completion for :disassemble is incomplete.
Solution: Recognize the "debug" and "profile" arguments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 18:45:03 +0200 |
parents | 8388176a0954 |
children | 4d3c68196d05 |
line wrap: on
line diff
--- 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