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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user