summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-26 16:50:30 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-26 16:50:30 +0100
commit8f76e6b12b958f2779444a92234bbaf3f49eeb99 (patch)
tree36c6d1bb7f575255ca0743dccde1523436134a43 /src/eval.c
parent84f903326d44db9b75fc3a39d4866f636f9ad4cd (diff)
patch 8.1.2348: :const cannot be followed by "| endif"v8.1.2348
Problem: :const cannot be followed by "| endif". Solution: Check following command for :const. (closes #5269) Also fix completion after :const.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index ace1e013f5..b65f29efca 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1521,7 +1521,7 @@ set_context_for_expression(
int c;
char_u *p;
- if (cmdidx == CMD_let)
+ if (cmdidx == CMD_let || cmdidx == CMD_const)
{
xp->xp_context = EXPAND_USER_VARS;
if (vim_strpbrk(arg, (char_u *)"\"'+-*/%.=!?~|&$([<>,#") == NULL)