]> granicus.if.org Git - vim/commitdiff
patch 8.2.3397: no test for what 8.2.3391 fixes v8.2.3397
authorYegappan Lakshmanan <yegappan@yahoo.com>
Thu, 2 Sep 2021 18:05:26 +0000 (20:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Sep 2021 18:05:26 +0000 (20:05 +0200)
Problem:    No test for what 8.2.3391 fixes.
Solution:   Add a test. (Yegappan Lakshmanan, closes #8828)

src/testdir/test_breakindent.vim
src/version.c

index 4dab8b598fb43a0b5835d638a318fc11f3c24b17..0c143b1943b01549d4e152b5a6dbbadb8614b798 100644 (file)
@@ -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
index 3708e8f07886e1b74b262d916714fa0896b0c3fd..8aaf163e1cc7088bf7617d1a3f4af6432043d7bb 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3397,
 /**/
     3396,
 /**/