view src/testdir/test_preview.vim @ 16144:4850744dc181 v8.1.1077

patch 8.1.1077: reg_executing() is reset by calling input() commit https://github.com/vim/vim/commit/9a2c091a748b380efafe60583698c9afcaab1e46 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 30 14:26:18 2019 +0100 patch 8.1.1077: reg_executing() is reset by calling input() Problem: reg_executing() is reset by calling input(). Solution: Implement a more generic way to save and restore reg_executing. (Ozaki Kiichi, closes #4192)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Mar 2019 14:30:05 +0100
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