comparison src/testdir/test_quickfix.vim @ 20764:3c61d8ec36af v8.2.0934

patch 8.2.0934: lhelpgrep twice in help window doesn't jump to the help topic Commit: https://github.com/vim/vim/commit/ec98e93a82379ca9289d8021aec374aa6798afef Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 8 19:35:59 2020 +0200 patch 8.2.0934: lhelpgrep twice in help window doesn't jump to the help topic Problem: Running lhelpgrep twice in a help window doesn't jump to the help topic. Solution: Check whether any window with the location list is present. (Yegappan Lakshmanan, closes #6215)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Jun 2020 19:45:04 +0200
parents 68170c89e355
children 1e2e81dbb958
comparison
equal deleted inserted replaced
20763:10eb3da35cd6 20764:3c61d8ec36af
4916 func Test_qftextfunc() 4916 func Test_qftextfunc()
4917 call Xtest_qftextfunc('c') 4917 call Xtest_qftextfunc('c')
4918 call Xtest_qftextfunc('l') 4918 call Xtest_qftextfunc('l')
4919 endfunc 4919 endfunc
4920 4920
4921 " Running :lhelpgrep command more than once in a help window, doesn't jump to
4922 " the help topic
4923 func Test_lhelpgrep_from_help_window()
4924 call mkdir('Xtestdir/doc', 'p')
4925 call writefile(['window'], 'Xtestdir/doc/a.txt')
4926 call writefile(['buffer'], 'Xtestdir/doc/b.txt')
4927 let save_rtp = &rtp
4928 let &rtp = 'Xtestdir'
4929 lhelpgrep window
4930 lhelpgrep buffer
4931 call assert_equal('b.txt', fnamemodify(@%, ":p:t"))
4932 lhelpgrep window
4933 call assert_equal('a.txt', fnamemodify(@%, ":p:t"))
4934 let &rtp = save_rtp
4935 call delete('Xtestdir', 'rf')
4936 new | only!
4937 endfunc
4938
4921 " vim: shiftwidth=2 sts=2 expandtab 4939 " vim: shiftwidth=2 sts=2 expandtab