summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-24 12:34:03 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-24 12:34:03 +0000
commit5c8771bc5a2be123ab8e6325fa60ed524e8efb09 (patch)
treea8c009f3c6c3ee35eb9da06730151ae0392d9c60 /src/cmdexpand.c
parent6ec66660476562e643deceb7c325cd0e8c903663 (diff)
patch 9.0.1238: :runtime completion can be further improvedv9.0.1238
Problem: :runtime completion can be further improved. Solution: Also complete the {where} argument values and adjust the completion for that. (closes #11874)
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 17f3878a0b..8ca5ecddc3 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -3025,10 +3025,6 @@ ExpandFromContext(
return ExpandRTDir(pat, DIP_START + DIP_OPT, numMatches, matches,
directories);
}
- if (xp->xp_context == EXPAND_RUNTIME)
- {
- return expand_runtime_cmd(pat, numMatches, matches);
- }
if (xp->xp_context == EXPAND_COMPILER)
{
char *directories[] = {"compiler", NULL};
@@ -3050,6 +3046,8 @@ ExpandFromContext(
#endif
if (xp->xp_context == EXPAND_PACKADD)
return ExpandPackAddDir(pat, numMatches, matches);
+ if (xp->xp_context == EXPAND_RUNTIME)
+ return expand_runtime_cmd(pat, numMatches, matches);
// When expanding a function name starting with s:, match the <SNR>nr_
// prefix.