summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_highlight.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-24 00:58:07 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-24 00:58:07 +0200
commite7eb92708ec2092a2fc11e78703b5dcf83844412 (patch)
treed00da20838b81404557c7b0ef17d2890f18175ac /src/testdir/test_highlight.vim
parent0a1f56fcfe31be929e9cd8c3d81a984c960e4180 (diff)
patch 8.1.1585: :let-heredoc does not trim enoughv8.1.1585
Problem: :let-heredoc does not trim enough. Solution: Trim indent from the contents based on the indent of the first line. Use let-heredoc in more tests.
Diffstat (limited to 'src/testdir/test_highlight.vim')
-rw-r--r--src/testdir/test_highlight.vim13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim
index 78dbead8b9..09f80670f1 100644
--- a/src/testdir/test_highlight.vim
+++ b/src/testdir/test_highlight.vim
@@ -578,12 +578,13 @@ func Test_wincolor()
throw 'Skipped: cannot make screendumps'
endif
- call writefile([
- \ 'set cursorline cursorcolumn rnu',
- \ 'call setline(1, ["","1111111111","22222222222","3 here 3",""])',
- \ 'set wincolor=Pmenu',
- \ '/here',
- \ ], 'Xtest_wincolor')
+ let lines =<< trim END
+ set cursorline cursorcolumn rnu
+ call setline(1, ["","1111111111","22222222222","3 here 3",""])
+ set wincolor=Pmenu
+ /here
+ END
+ call writefile(lines, 'Xtest_wincolor')
let buf = RunVimInTerminal('-S Xtest_wincolor', {'rows': 8})
call term_wait(buf)
call term_sendkeys(buf, "2G5lvj")