view src/testdir/test_erasebackword.vim @ 23944:6e593e0aaadf v8.2.2514

patch 8.2.2514: Vim9: build error in tiny version Commit: https://github.com/vim/vim/commit/2379f87eb48a4ee6a1d0fc7df964e12a3efe4fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 14 14:07:34 2021 +0100 patch 8.2.2514: Vim9: build error in tiny version Problem: Vim9: build error in tiny version. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Feb 2021 14:15:03 +0100
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