summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-07-16 20:18:37 +0000
committerBram Moolenaar <Bram@vim.org>2004-07-16 20:18:37 +0000
commit21cf823a906f1f66391a145a976fdae8e98e0394 (patch)
tree5bae960027f0aefb74dc7176fd8e1509aea71200 /src/ex_docmd.c
parent2df6dcc596d3c79283ec9efc36425a5564a45ab5 (diff)
downloadvim-21cf823a906f1f66391a145a976fdae8e98e0394.zip
updated for version 7.0009
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 5b34c8ef2..7415e4629 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3205,6 +3205,11 @@ set_one_cmd_context(xp, buff)
{
xp->xp_context = EXPAND_ENV_VARS;
++xp->xp_pattern;
+#if defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)
+ /* Avoid that the assignment uses EXPAND_FILES again. */
+ if (compl != EXPAND_USER_DEFINED)
+ compl = EXPAND_ENV_VARS;
+#endif
}
}
}