view src/testdir/test_preview.vim @ 18564:c14f5d3a205d v8.1.2276

patch 8.1.2276: MS-Windows: session test leaves files behind Commit: https://github.com/vim/vim/commit/5bf46e978619ff602a7c63dd98e19de8248236b3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 9 18:06:04 2019 +0100 patch 8.1.2276: MS-Windows: session test leaves files behind Problem: MS-Windows: session test leaves files behind. Solution: Wipe out buffers before deleting the directory. (closes https://github.com/vim/vim/issues/5187)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Nov 2019 18:15:03 +0100
parents 5e36b2f825cb
children 068337e86133
line wrap: on
line source

" 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