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 #8802)
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 0a71b11..341a0f1 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -841,9 +841,11 @@
call assert_equal("\"disas debug Test_cmdline_complete_various", @:)
call feedkeys(":disas profile Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
call assert_equal("\"disas profile Test_cmdline_complete_various", @:)
+ call feedkeys(":disas Test_cmdline_complete_var\<C-A>\<C-B>\"\<CR>", 'xt')
+ call assert_equal("\"disas Test_cmdline_complete_various", @:)
call feedkeys(":disas s:WeirdF\<C-A>\<C-B>\"\<CR>", 'xt')
- call assert_match('"disas <SNR>\d\+_WeirdFunc()', @:)
+ call assert_match('"disas <SNR>\d\+_WeirdFunc', @:)
" completion for the :match command
call feedkeys(":match Search /pat/\<C-A>\<C-B>\"\<CR>", 'xt')
diff --git a/src/userfunc.c b/src/userfunc.c
index 86a2bec..4a2b05e 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -4625,7 +4625,8 @@
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
index 77935e5..a9c5b4c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3383,
+/**/
3382,
/**/
3381,