view src/testdir/test_preview.vim @ 17936:7f3283683d97 v8.1.1964

patch 8.1.1964: crash when using nested map() and filter() Commit: https://github.com/vim/vim/commit/c36350bca3eed8ef97061e28c38b5b89cae1f13e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 2 20:44:07 2019 +0200 patch 8.1.1964: crash when using nested map() and filter() Problem: Crash when using nested map() and filter(). Solution: Do not set the v:key type to string without clearing the pointer.
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Sep 2019 20:45:04 +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