diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-09-02 20:05:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-02 20:05:26 +0200 |
commit | 03d257998b6343fc91f9dfd5ffc92eebe98d4d24 (patch) | |
tree | 94c57db5ff5a448d2db679d9a3da41bd0701f446 /src/testdir/test_breakindent.vim | |
parent | 87e1587b8add93e40340170e4261cdadc4c8940e (diff) |
patch 8.2.3397: no test for what 8.2.3391 fixesv8.2.3397
Problem: No test for what 8.2.3391 fixes.
Solution: Add a test. (Yegappan Lakshmanan, closes #8828)
Diffstat (limited to 'src/testdir/test_breakindent.vim')
-rw-r--r-- | src/testdir/test_breakindent.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index 4dab8b598f..0c143b1943 100644 --- a/src/testdir/test_breakindent.vim +++ b/src/testdir/test_breakindent.vim @@ -831,4 +831,22 @@ func Test_breakindent20_list() call s:close_windows('set breakindent& briopt& linebreak& list& listchars& showbreak&') endfunc +" The following used to crash Vim. This is fixed by 8.2.3391. +" This is a regression introduced by 8.2.2903. +func Test_window_resize_with_linebreak() + new + 53vnew + set linebreak + set showbreak=>> + set breakindent + set breakindentopt=shift:4 + call setline(1, "\naaaaaaaaa\n\na\naaaaa\n¯aaaaaaaaaa\naaaaaaaaaaaa\naaa\n\"a:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - aaaaaaaa\"\naaaaaaaa\n\"a") + redraw! + call assert_equal([" >>aa^@\"a: "], ScreenLines(2, 14)) + vertical resize 52 + redraw! + call assert_equal([" >>aaa^@\"a:"], ScreenLines(2, 14)) + %bw! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |