view src/testdir/test_preview.vim @ 13035:89e191a2a8a7 v8.0.1393

patch 8.0.1393: too much highlighting with 'hlsearch' and 'incsearch' set commit https://github.com/vim/vim/commit/6621605eb97cf5fbc481282fd4d349a76e168f16 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 16 16:33:44 2017 +0100 patch 8.0.1393: too much highlighting with 'hlsearch' and 'incsearch' set Problem: Too much highlighting with 'hlsearch' and 'incsearch' set. Solution: Do not highlight matches when the pattern matches everything.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Dec 2017 16:45:04 +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