view src/testdir/test_erasebackword.vim @ 15014:cc4c41448d77 v8.1.0518

patch 8.1.0518: Test_window_split_edit_bufnr() fails on AppVeyor commit https://github.com/vim/vim/commit/8617b401599451187fa0c0561a84944978536a90 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 10 20:47:48 2018 +0100 patch 8.1.0518: Test_window_split_edit_bufnr() fails on AppVeyor Problem: Test_window_split_edit_bufnr() fails on AppVeyor. Solution: Disable the failing part for now.
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Nov 2018 21:00:06 +0100
parents 90aaa974594e
children 2dcaa860e3fc
line wrap: on
line source


func Test_erasebackword()
  if !has('multi_byte')
    return
  endif

  set encoding=utf-8
  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!
  set encoding&
endfunc