diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-06 18:44:39 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-10 15:52:07 +0100 |
commit | 36aff87ab6a043a31c13daf4522843498b98c93f (patch) | |
tree | 9089ba7ae5a5cf2a3bfabff70ce9d0ca9cda4ba5 | |
parent | 6e1c03bd2dff3bf576f8cee781deee6f986c7f0a (diff) | |
download | rneovim-36aff87ab6a043a31c13daf4522843498b98c93f.tar.gz rneovim-36aff87ab6a043a31c13daf4522843498b98c93f.tar.bz2 rneovim-36aff87ab6a043a31c13daf4522843498b98c93f.zip |
vim-patch:8.2.3397: no test for what 8.2.3391 fixes
Problem: No test for what 8.2.3391 fixes.
Solution: Add a test. (Yegappan Lakshmanan, closes vim/vim#8828)
https://github.com/vim/vim/commit/03d257998b6343fc91f9dfd5ffc92eebe98d4d24
-rw-r--r-- | src/nvim/testdir/test_breakindent.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_breakindent.vim b/src/nvim/testdir/test_breakindent.vim index be1b782327..97b570e64f 100644 --- a/src/nvim/testdir/test_breakindent.vim +++ b/src/nvim/testdir/test_breakindent.vim @@ -871,4 +871,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 |