aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_quickfix.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-06 05:08:15 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-06 06:15:35 -0400
commitdc15dcffadca790a7b274110c0b356dcc22dfb82 (patch)
treeafe67cd235b58667aa05105c57a3a778075cbec2 /src/nvim/testdir/test_quickfix.vim
parentbb519fb261edf03be28f1a9150bdba58ed9d241e (diff)
downloadrneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.tar.gz
rneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.tar.bz2
rneovim-dc15dcffadca790a7b274110c0b356dcc22dfb82.zip
vim-patch:8.0.0782: using freed memory in quickfix code
Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Handle a help window differently. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/d28cc3f55d4a5a980f6ac6fa682382822a223720
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
-rw-r--r--src/nvim/testdir/test_quickfix.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim
index 33abb69ca6..ade656c45d 100644
--- a/src/nvim/testdir/test_quickfix.vim
+++ b/src/nvim/testdir/test_quickfix.vim
@@ -2269,3 +2269,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