view src/testdir/test_preview.vim @ 15010:e3910b9827d0 v8.1.0516

patch 8.1.0516: :move command marks buffer modified when nothing changed commit https://github.com/vim/vim/commit/ddd1f9183bed00d096f29c503721ac559174a29f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 10 19:19:36 2018 +0100 patch 8.1.0516: :move command marks buffer modified when nothing changed Problem: :move command marks buffer modified when nothing changed. Solution: Do not set 'modified'. Add a test. (Jason Franklin)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Nov 2018 19: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