diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2019-10-13 00:04:41 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2019-10-13 11:54:54 +0200 |
commit | 76f548a4765a95ee728ec65b84b8032170b483eb (patch) | |
tree | 4a81046e4b77ad8ef7fe59dd72cb1ed3268dd8d9 /src/nvim/testdir | |
parent | 3b894b1cb18a9d4e399ab5b55004767f63a384c3 (diff) | |
download | rneovim-76f548a4765a95ee728ec65b84b8032170b483eb.tar.gz rneovim-76f548a4765a95ee728ec65b84b8032170b483eb.tar.bz2 rneovim-76f548a4765a95ee728ec65b84b8032170b483eb.zip |
vim-patch:8.1.1729: heredoc with trim not properly handled in function
Problem: Heredoc with trim not properly handled in function.
Solution: Allow for missing indent. (FUJIWARA Takuya, closes vim/vim#4713)
https://github.com/vim/vim/commit/ecaa75b4cea329a3902b8565e028b32279b8322b
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_let.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_let.vim b/src/nvim/testdir/test_let.vim index 66067d3fc0..b5af871ab2 100644 --- a/src/nvim/testdir/test_let.vim +++ b/src/nvim/testdir/test_let.vim @@ -177,6 +177,15 @@ func Test_let_heredoc_fails() call delete('XheredocBadMarker') endfunc +func Test_let_heredoc_trim_no_indent_marker() + let text =<< trim END + Text + with + indent +END + call assert_equal(['Text', 'with', 'indent'], text) +endfunc + " Test for the setting a variable using the heredoc syntax func Test_let_heredoc() let var1 =<< END |