xref: /vim-8.2.3635/src/testdir/test_preview.vim (revision 5f1920ad)
1" Tests for the preview window
2source check.vim
3CheckFeature quickfix
4
5func Test_Psearch()
6  " this used to cause ml_get errors
7  help
8  let wincount = winnr('$')
9  0f
10  ps.
11  call assert_equal(wincount + 1, winnr('$'))
12  pclose
13  call assert_equal(wincount, winnr('$'))
14  bwipe
15endfunc
16