0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.2348: :const cannot be followed by "| endif"

Problem:    :const cannot be followed by "| endif".
Solution:   Check following command for :const. (closes #5269)
            Also fix completion after :const.
This commit is contained in:
Bram Moolenaar
2019-11-26 16:50:30 +01:00
parent 84f903326d
commit 8f76e6b12b
7 changed files with 16 additions and 1 deletions

View File

@@ -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)