summaryrefslogtreecommitdiff
path: root/src/testdir/test_preview.vim
blob: 91923fb1e96f86534a691c50a8971785e3aa09d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Tests for the preview window

func Test_Psearch()
  " this used to cause ml_get errors
  help
  let wincount = winnr('$')
  0f
  ps.
  call assert_equal(wincount + 1, winnr('$'))
  pclose
  call assert_equal(wincount, winnr('$'))
  bwipe
endfunc