diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-12-02 16:39:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-02 16:39:44 +0000 |
commit | c67c89c7589253215d57bad588edcf83a9403560 (patch) | |
tree | 1125e11fda971572669020d565ed5c872d75130b /src/testdir/test_breakindent.vim | |
parent | c96b7f5d2af241c5eb1589e9da3dc09e45355e65 (diff) |
patch 9.0.0991: crash when reading help index with various options setv9.0.0991
Problem: Crash when reading help index with various options set. (Marius
Gedminas)
Solution: Do not set wlv.c_extra to NUL when wlv.p_extra is NULL.
(closes #11651)
Diffstat (limited to 'src/testdir/test_breakindent.vim')
-rw-r--r-- | src/testdir/test_breakindent.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/test_breakindent.vim b/src/testdir/test_breakindent.vim index 9719c3d0a2..27b1d98475 100644 --- a/src/testdir/test_breakindent.vim +++ b/src/testdir/test_breakindent.vim @@ -1034,4 +1034,22 @@ func Test_breakindent_column() bwipeout! endfunc +func Test_linebreak_list() + " This was setting wlv.c_extra to NUL while wlv.p_extra is NULL + filetype plugin on + syntax enable + edit! $VIMRUNTIME/doc/index.txt + /v_P + + setlocal list + setlocal listchars=tab:>- + setlocal linebreak + setlocal nowrap + setlocal filetype=help + redraw! + + bwipe! +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |