view src/testdir/test_preview.vim @ 18900:a9c47c623f4a v8.2.0011

patch 8.2.0011: screen updating wrong when opeing preview window Commit: https://github.com/vim/vim/commit/5e5a98d7de41457fabad4eb5af3d54cc93f05d0a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 15 14:55:33 2019 +0100 patch 8.2.0011: screen updating wrong when opeing preview window Problem: Screen updating wrong when opeing preview window. Solution: Redraw the window when the preview window opens.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Dec 2019 15:00: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