diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-10-21 02:17:25 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-10-20 17:17:25 -0700 |
commit | 2e4465e0585053bddaf8e6e60dc50bf1be0ba54e (patch) | |
tree | 305e281abd09abeb60edc3f770f59bf7fa5d5099 /src/nvim/testdir | |
parent | 6fd6f4683d19d5ca18f48c1d1f0d87113e80368e (diff) | |
download | rneovim-2e4465e0585053bddaf8e6e60dc50bf1be0ba54e.tar.gz rneovim-2e4465e0585053bddaf8e6e60dc50bf1be0ba54e.tar.bz2 rneovim-2e4465e0585053bddaf8e6e60dc50bf1be0ba54e.zip |
vim-patch:8.1.2168: heredoc not skipped in if-block #11265
Problem: Heredoc assignment not skipped in if block.
Solution: Check if "skip" is set.
https://github.com/vim/vim/commit/b1ba9abcb385b0a5355788a7eefef78ec68d2f65
Fixes https://github.com/neovim/neovim/issues/11264
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_let.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_let.vim b/src/nvim/testdir/test_let.vim index b5af871ab2..1fce3d6937 100644 --- a/src/nvim/testdir/test_let.vim +++ b/src/nvim/testdir/test_let.vim @@ -276,4 +276,12 @@ E app END call assert_equal(['something', 'app'], var1) + + let check = [] + if 0 + let check =<< trim END + from heredoc + END + endif + call assert_equal([], check) endfunc |