diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-07-25 08:17:01 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-08-02 12:00:02 -0400 |
| commit | 6f3a18197b5d31f24afff244baf7f00fab659804 (patch) | |
| tree | 2a31ad790357572dbbeaf4eb6a264386b69f2e79 /src/nvim/testdir/test_quickfix.vim | |
| parent | 886969e1f8d067b9bdf6ea9d1593222645c2680e (diff) | |
| download | rneovim-6f3a18197b5d31f24afff244baf7f00fab659804.tar.gz rneovim-6f3a18197b5d31f24afff244baf7f00fab659804.tar.bz2 rneovim-6f3a18197b5d31f24afff244baf7f00fab659804.zip | |
vim-patch:8.1.2340: quickfix test fails under valgrind and asan
Problem: Quickfix test fails under valgrind and asan.
Solution: Make sure long line does not overflow IObuff. (Dominique Pelle,
closes vim/vim#5263) Put back fix for large terminals. (Yegappan
Lakshmanan, closes vim/vim#5264)
https://github.com/vim/vim/commit/a106e6cde682bda4ad10ed745acb51975fcb02e0
Diffstat (limited to 'src/nvim/testdir/test_quickfix.vim')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 35555ca9d3..926103b69f 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -554,6 +554,33 @@ func s:test_xhelpgrep(cchar) " This wipes out the buffer, make sure that doesn't cause trouble. Xclose + " When the current window is vertically split, jumping to a help match + " should open the help window at the top. + only | enew + let w1 = win_getid() + vert new + let w2 = win_getid() + Xnext + let w3 = win_getid() + call assert_true(&buftype == 'help') + call assert_true(winnr() == 1) + " See jump_to_help_window() for details + let w2_width = winwidth(w2) + if w2_width != &columns && w2_width < 80 + call assert_equal(['col', [['leaf', w3], + \ ['row', [['leaf', w2], ['leaf', w1]]]]], winlayout()) + else + call assert_equal(['row', [['col', [['leaf', w3], ['leaf', w2]]], + \ ['leaf', w1]]] , winlayout()) + endif + + new | only + set buftype=help + set modified + call assert_fails('Xnext', 'E37:') + set nomodified + new | only + if a:cchar == 'l' " When a help window is present, running :lhelpgrep should reuse the " help window and not the current window |