Skip to content

Commit 03d2579

Browse files
yegappanbrammool
authored andcommitted
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 #8828)
1 parent 87e1587 commit 03d2579

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/testdir/test_breakindent.vim

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,4 +831,22 @@ func Test_breakindent20_list()
831831
call s:close_windows('set breakindent& briopt& linebreak& list& listchars& showbreak&')
832832
endfunc
833833

834+
" The following used to crash Vim. This is fixed by 8.2.3391.
835+
" This is a regression introduced by 8.2.2903.
836+
func Test_window_resize_with_linebreak()
837+
new
838+
53vnew
839+
set linebreak
840+
set showbreak=>>
841+
set breakindent
842+
set breakindentopt=shift:4
843+
call setline(1, "\naaaaaaaaa\n\na\naaaaa\n¯aaaaaaaaaa\naaaaaaaaaaaa\naaa\n\"a:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa - aaaaaaaa\"\naaaaaaaa\n\"a")
844+
redraw!
845+
call assert_equal([" >>aa^@\"a: "], ScreenLines(2, 14))
846+
vertical resize 52
847+
redraw!
848+
call assert_equal([" >>aaa^@\"a:"], ScreenLines(2, 14))
849+
%bw!
850+
endfunc
851+
834852
" vim: shiftwidth=2 sts=2 expandtab

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3397,
758760
/**/
759761
3396,
760762
/**/

0 commit comments

Comments
 (0)