summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_let.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-21 23:04:21 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-21 23:04:21 +0200
commitecaa75b4cea329a3902b8565e028b32279b8322b (patch)
tree3d5754f26f8967b0305359912a70dc6f5308cc1f /src/testdir/test_let.vim
parent5f32ece459d1f310b1b48b72e07dcd77d3261a76 (diff)
patch 8.1.1729: heredoc with trim not properly handled in functionv8.1.1729
Problem: Heredoc with trim not properly handled in function. Solution: Allow for missing indent. (FUJIWARA Takuya, closes #4713)
Diffstat (limited to 'src/testdir/test_let.vim')
-rw-r--r--src/testdir/test_let.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_let.vim b/src/testdir/test_let.vim
index 36900821be..3bb5748947 100644
--- a/src/testdir/test_let.vim
+++ b/src/testdir/test_let.vim
@@ -188,6 +188,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