diff options
author | vimboss <devnull@localhost> | 2004-07-16 20:18:37 +0000 |
---|---|---|
committer | vimboss <devnull@localhost> | 2004-07-16 20:18:37 +0000 |
commit | 3ef72b65490b63bb7b2514643a4e5f95d4749722 (patch) | |
tree | 5bae960027f0aefb74dc7176fd8e1509aea71200 /src/ex_docmd.c | |
parent | a5a2444507b301baca0affee74b8392391e24d29 (diff) | |
download | vim-7.0009.tar.gz |
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 5b34c8ef..7415e462 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 } } } |