summaryrefslogtreecommitdiff
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-08-26 16:39:58 +0200
committerBram Moolenaar <Bram@vim.org>2021-08-26 16:39:58 +0200
commit47016f57724d3970c54f4ca1f392dff39d3fecae (patch)
tree5a83f06518c486c1ad4bcc32f5e0a40bbadbf72e /src/cmdexpand.c
parent4799cef85ce43e26f5022290b41a7c85bbab8cad (diff)
downloadvim-git-47016f57724d3970c54f4ca1f392dff39d3fecae.tar.gz
patch 8.2.3377: Vim9: :disass completion does not understand "s:"v8.2.3377
Problem: Vim9: :disass completion does not understand "s:". Solution: Expand "s:" to a pattern. (closes #8780)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 362ed77e2..27fda7866 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2073,7 +2073,9 @@ ExpandFromContext(
// When expanding a function name starting with s:, match the <SNR>nr_
// prefix.
- if (xp->xp_context == EXPAND_USER_FUNC && STRNCMP(pat, "^s:", 3) == 0)
+ if ((xp->xp_context == EXPAND_USER_FUNC
+ || xp->xp_context == EXPAND_DISASSEMBLE)
+ && STRNCMP(pat, "^s:", 3) == 0)
{
int len = (int)STRLEN(pat) + 20;