view src/testdir/test_preview.vim @ 18851:3cf9529b3a4a v8.1.2412

patch 8.1.2412: crash when evaluating expression with error Commit: https://github.com/vim/vim/commit/0ff822d2ebf0d130516631734b00179ba8dd8251 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 8 18:41:34 2019 +0100 patch 8.1.2412: crash when evaluating expression with error Problem: Crash when evaluating expression with error. (Dhiraj Mishra) Solution: Check parsing failed. (closes https://github.com/vim/vim/issues/5329)
author Bram Moolenaar <Bram@vim.org>
date Sun, 08 Dec 2019 18:45:03 +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