view src/testdir/test_erasebackword.vim @ 20261:aafedd368f40 v8.2.0686

patch 8.2.0686: formatoptions not sufficiently tested Commit: https://github.com/vim/vim/commit/2eaeaf3c317a5145fb0bc926411561d50883019b Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 3 16:04:43 2020 +0200 patch 8.2.0686: formatoptions not sufficiently tested Problem: Formatoptions not sufficiently tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6031)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 May 2020 16:15:03 +0200
parents 2dcaa860e3fc
children 08940efa6b4e
line wrap: on
line source


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