diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-26 20:05:52 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-26 20:38:59 -0500 |
commit | f196ab87a1b5a9da1326d4de883ab7e97a0bb1f0 (patch) | |
tree | 3fb278570c31bc6e70a7f1d51efae3135f0e1024 /src/nvim/eval.c | |
parent | d697690e24ae5ea9dc5189de504b03823f7fb0f4 (diff) | |
download | rneovim-f196ab87a1b5a9da1326d4de883ab7e97a0bb1f0.tar.gz rneovim-f196ab87a1b5a9da1326d4de883ab7e97a0bb1f0.tar.bz2 rneovim-f196ab87a1b5a9da1326d4de883ab7e97a0bb1f0.zip |
vim-patch:8.1.2348: :const cannot be followed by "| endif"
Problem: :const cannot be followed by "| endif".
Solution: Check following command for :const. (closes vim/vim#5269)
Also fix completion after :const.
https://github.com/vim/vim/commit/8f76e6b12b958f2779444a92234bbaf3f49eeb99
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9fe92a92cc..5229a81288 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2872,7 +2872,7 @@ void set_context_for_expression(expand_T *xp, char_u *arg, cmdidx_T cmdidx) 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) { /* ":let var1 var2 ...": find last space. */ |