summaryrefslogtreecommitdiffstats
path: root/src/cmdexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdexpand.c')
-rw-r--r--src/cmdexpand.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index 27fda78667..58ba759675 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -1277,12 +1277,8 @@ set_one_cmd_context(
xp->xp_context = EXPAND_SHELLCMD;
}
- // Check for environment variable
- if (*xp->xp_pattern == '$'
-#if defined(MSWIN)
- || *xp->xp_pattern == '%'
-#endif
- )
+ // Check for environment variable.
+ if (*xp->xp_pattern == '$')
{
for (p = xp->xp_pattern + 1; *p != NUL; ++p)
if (!vim_isIDc(*p))
@@ -1296,7 +1292,7 @@ set_one_cmd_context(
compl = EXPAND_ENV_VARS;
}
}
- // Check for user names
+ // Check for user names.
if (*xp->xp_pattern == '~')
{
for (p = xp->xp_pattern + 1; *p != NUL && *p != '/'; ++p)