Patch 8.2.3397

6 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 2, 2021, 2:06:06 PM9/2/21
to vim...@googlegroups.com

Patch 8.2.3397
Problem: No test for what 8.2.3391 fixes.
Solution: Add a test. (Yegappan Lakshmanan, closes #8828)
Files: src/testdir/test_breakindent.vim


*** ../vim-8.2.3396/src/testdir/test_breakindent.vim 2021-07-22 11:46:55.502419535 +0200
--- src/testdir/test_breakindent.vim 2021-09-02 19:55:15.498478061 +0200
***************
*** 831,834 ****
--- 831,852 ----
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
*** ../vim-8.2.3396/src/version.c 2021-09-02 19:53:03.206805177 +0200
--- src/version.c 2021-09-02 19:56:51.270240033 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3397,
/**/

--
A salesperson says: Translation:
"backward compatible" Old technology
"Premium" Overpriced
"Can't keep it on the shelf" Unavailable
"Stands alone" Piece of shit
"Proprietary" Incompatible
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages