Mercurial > vim
changeset 25723:b079bdc99c18 v8.2.3397
patch 8.2.3397: no test for what 8.2.3391 fixes
Commit: https://github.com/vim/vim/commit/03d257998b6343fc91f9dfd5ffc92eebe98d4d24
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 02 Sep 2021 20:15:04 +0200 |
parents | b86f0758cce8 |
children | 719f83138941 |
files | src/testdir/test_breakindent.vim src/version.c |
diffstat | 2 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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