view src/testdir/test_erasebackword.vim @ 28887:0e207ddd939d v8.2.4966

patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event Commit: https://github.com/vim/vim/commit/e5162e76c0a8bd71fbfb0840a8c0014788d8808b Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 16 16:41:35 2022 +0100 patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event Problem: MS-Windows GUI: mouse event test gets extra event. Solution: Ignore one move event.
author Bram Moolenaar <Bram@vim.org>
date Mon, 16 May 2022 17:45:03 +0200
parents 08940efa6b4e
children
line wrap: on
line source

" Test for i_CTRL-W

func Test_erasebackword()
  enew

  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>"
  call assert_equal(' wwwこんにちわ世界ワールド', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>"
  call assert_equal(' wwwこんにちわ世界', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>"
  call assert_equal(' wwwこんにちわ', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal(' www', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal(' ', getline('.'))
  exe "normal o wwwこんにちわ世界ワールドvim \<C-W>\<C-W>\<C-W>\<C-W>\<C-W>\<C-W>"
  call assert_equal('', getline('.'))

  enew!
endfunc

" vim: shiftwidth=2 sts=2 expandtab