diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-26 16:50:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-26 16:50:30 +0100 |
commit | 8f76e6b12b958f2779444a92234bbaf3f49eeb99 (patch) | |
tree | 36c6d1bb7f575255ca0743dccde1523436134a43 /src/testdir/test_let.vim | |
parent | 84f903326d44db9b75fc3a39d4866f636f9ad4cd (diff) | |
download | vim-git-8f76e6b12b958f2779444a92234bbaf3f49eeb99.tar.gz |
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/testdir/test_let.vim')
-rw-r--r-- | src/testdir/test_let.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_let.vim b/src/testdir/test_let.vim index 4d9aae96f..055425de2 100644 --- a/src/testdir/test_let.vim +++ b/src/testdir/test_let.vim @@ -24,6 +24,10 @@ func Test_let() let out = execute('let a {0 == 1 ? "a" : "b"}') let s = "\na #1\nb #2" call assert_equal(s, out) + + let x = 0 + if 0 | let x = 1 | endif + call assert_equal(0, x) endfunc func s:set_arg1(a) abort |