diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-27 22:03:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-27 22:03:50 +0200 |
commit | d28cc3f55d4a5a980f6ac6fa682382822a223720 (patch) | |
tree | afbd1226f742817a8a86a8d256587bf2a93a7daf /src/testdir/test_quickfix.vim | |
parent | ab6eec3887d68c260b50b1b8f9ed95d49d9306c6 (diff) | |
download | vim-git-8.0.0782.tar.gz |
patch 8.0.0782: using freed memory in quickfix codev8.0.0782
Problem: Using freed memory in quickfix code. (Dominique Pelle)
Solution: Handle a help window differently. (Yegappan Lakshmanan)
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index 7b344eaad..41e502154 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -2287,3 +2287,17 @@ func Test_changedtick() call Xchangedtick_tests('c') call Xchangedtick_tests('l') endfunc + +" Open multiple help windows using ":lhelpgrep +" This test used to crash Vim +func Test_Multi_LL_Help() + new | only + lhelpgrep window + lopen + e# + lhelpgrep buffer + call assert_equal(3, winnr('$')) + call assert_true(len(getloclist(1)) != 0) + call assert_true(len(getloclist(2)) != 0) + new | only +endfunc |