# HG changeset patch # User Bram Moolenaar # Date 1630159204 -7200 # Node ID ce91372ca07b7d2cf54e39404f7732059c92aa0e # Parent 55bee0ef54cff04b032e3550ee1e5f06c9697f33 patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis Commit: https://github.com/vim/vim/commit/9aecf79c45da5593e4d8c0de1b2d212edc4765ce Author: naohiro ono Date: Sat Aug 28 15:56:06 2021 +0200 patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis Problem: Vim9: completion for :disassemble adds parenthesis. Solution: Don't add parenthesis. (Naohiro Ono, closes https://github.com/vim/vim/issues/8802) diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -841,9 +841,11 @@ func Test_cmdline_complete_various() call assert_equal("\"disas debug Test_cmdline_complete_various", @:) call feedkeys(":disas profile Test_cmdline_complete_var\\\"\", 'xt') call assert_equal("\"disas profile Test_cmdline_complete_various", @:) + call feedkeys(":disas Test_cmdline_complete_var\\\"\", 'xt') + call assert_equal("\"disas Test_cmdline_complete_various", @:) call feedkeys(":disas s:WeirdF\\\"\", 'xt') - call assert_match('"disas \d\+_WeirdFunc()', @:) + call assert_match('"disas \d\+_WeirdFunc', @:) " completion for the :match command call feedkeys(":match Search /pat/\\\"\", 'xt') diff --git a/src/userfunc.c b/src/userfunc.c --- a/src/userfunc.c +++ b/src/userfunc.c @@ -4625,7 +4625,8 @@ get_user_func_name(expand_T *xp, int idx return fp->uf_name; // prevents overflow cat_func_name(IObuff, fp); - if (xp->xp_context != EXPAND_USER_FUNC) + if (xp->xp_context != EXPAND_USER_FUNC + && xp->xp_context != EXPAND_DISASSEMBLE) { STRCAT(IObuff, "("); if (!has_varargs(fp) && fp->uf_args.ga_len == 0) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3383, +/**/ 3382, /**/ 3381,