# HG changeset patch # User Bram Moolenaar # Date 1630606504 -7200 # Node ID b079bdc99c18d36b96c701a5537ffd571b1059ca # Parent b86f0758cce8d4d7082e7029897b3e27bcbb4ce7 patch 8.2.3397: no test for what 8.2.3391 fixes Commit: https://github.com/vim/vim/commit/03d257998b6343fc91f9dfd5ffc92eebe98d4d24 Author: Yegappan Lakshmanan Date: Thu Sep 2 20:05:26 2021 +0200 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 https://github.com/vim/vim/issues/8828) diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim --- 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3397, +/**/ 3396, /**/ 3395,