view src/testdir/test_preview.vim @ 14985:4ebda55537a5 v8.1.0504

patch 8.1.0504: when CTRL-C is mapped it triggers InsertLeave commit https://github.com/vim/vim/commit/4dbc2627641a6b950c30c31cbf7b7e6c36da1927 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 2 11:59:15 2018 +0100 patch 8.1.0504: when CTRL-C is mapped it triggers InsertLeave Problem: When CTRL-C is mapped it triggers InsertLeave. Solution: Make CTRL-C behave the same way when typed or used in a mapping.
author Bram Moolenaar <Bram@vim.org>
date Fri, 02 Nov 2018 12:00:07 +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