view src/testdir/test_preview.vim @ 19443:6b1a59e71f85 v8.2.0279

patch 8.2.0279: Vim9: no test for deleted :def function Commit: https://github.com/vim/vim/commit/63ce4849efa54d3980446ad337d0e1248ec86182 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 19 15:46:48 2020 +0100 patch 8.2.0279: Vim9: no test for deleted :def function Problem: Vim9: no test for deleted :def function. Solution: Add a test. Clear uf_cleared flag when redefining a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 16:00:04 +0100
parents 068337e86133
children 2c4d9ca33769
line wrap: on
line source

" Tests for the preview window
source check.vim
CheckFeature quickfix

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