view src/testdir/test_preview.vim @ 19350:76cb39bf1871 v8.2.0233

patch 8.2.0233: crash when using garbagecollect() in between rand() Commit: https://github.com/vim/vim/commit/4f645c54efe33d7a11e314676e503118761f08a7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 8 16:40:39 2020 +0100 patch 8.2.0233: crash when using garbagecollect() in between rand() Problem: Crash when using garbagecollect() in between rand(). Solution: Redesign the rand() and srand() implementation. (Yasuhiro Matsumoto, closes #5587, closes #5588)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Feb 2020 16:45: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