diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-01-21 18:16:16 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-21 18:16:16 +0800 |
| commit | cb39c825c49c5557f8df5a1242907c49cacad4b1 (patch) | |
| tree | be05b830086e9cc2eef5980687d120abd5f43f0d /src/nvim/testdir | |
| parent | 296b8fbe3b62984210bb93c7d64b68cd1dd479b7 (diff) | |
| download | rneovim-cb39c825c49c5557f8df5a1242907c49cacad4b1.tar.gz rneovim-cb39c825c49c5557f8df5a1242907c49cacad4b1.tar.bz2 rneovim-cb39c825c49c5557f8df5a1242907c49cacad4b1.zip | |
vim-patch:8.2.3410: crash with linebreak, listchars and large tabstop
Problem: Crash with linebreak, listchars and large tabstop.
Solution: Account for different size listchars for a tab. (closes vim/vim#8841)
https://github.com/vim/vim/commit/89a54b413a8c96206ce7e038dde81a6eff6cd6b8
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_listlbr_utf8.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listlbr_utf8.vim b/src/nvim/testdir/test_listlbr_utf8.vim index c38e0c5f3c..1f100d6244 100644 --- a/src/nvim/testdir/test_listlbr_utf8.vim +++ b/src/nvim/testdir/test_listlbr_utf8.vim @@ -69,6 +69,16 @@ func Test_nolinebreak_with_list() call s:close_windows() endfunc +" this was causing a crash +func Test_linebreak_with_list_and_tabs() + set linebreak list listchars=tab:⇤\ ⇥ tabstop=100 + new + call setline(1, "\t\t\ttext") + redraw + bwipe! + set nolinebreak nolist listchars&vim tabstop=8 +endfunc + func Test_linebreak_with_nolist() call s:test_windows('setl nolist') call setline(1, "\t*mask = nil;") |