view src/testdir/test_preview.vim @ 17899:48fd0712dad8 v8.1.1946

patch 8.1.1946: memory error when profiling a function without a script ID Commit: https://github.com/vim/vim/commit/163588005da3a240e49416093d0d0251951d60a1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 30 18:37:26 2019 +0200 patch 8.1.1946: memory error when profiling a function without a script ID Problem: Memory error when profiling a function without a script ID. Solution: Check for missing script ID. (closes https://github.com/vim/vim/issues/4877)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Aug 2019 18:45:03 +0200
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