aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_listlbr.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/old/testdir/test_listlbr.vim b/test/old/testdir/test_listlbr.vim
index 9b9bf63864..6dea94fbf1 100644
--- a/test/old/testdir/test_listlbr.vim
+++ b/test/old/testdir/test_listlbr.vim
@@ -373,4 +373,19 @@ func Test_ctrl_char_on_wrap_column()
call s:close_windows()
endfunc
+func Test_linebreak_no_break_after_whitespace_only()
+ call s:test_windows('setl ts=4 linebreak wrap')
+ call setline(1, "\tabcdefghijklmnopqrstuvwxyz" ..
+ \ "abcdefghijklmnopqrstuvwxyz")
+ let lines = s:screen_lines([1, 4], winwidth(0))
+ let expect = [
+\ " abcdefghijklmnop",
+\ "qrstuvwxyzabcdefghij",
+\ "klmnopqrstuvwxyz ",
+\ "~ ",
+\ ]
+ call s:compare_lines(expect, lines)
+ call s:close_windows()
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab