view src/testdir/test_erasebackword.vim @ 18152:1acc94f17906 v8.1.2071

patch 8.1.2071: when 'wincolor' is set text property changes highlighting Commit: https://github.com/vim/vim/commit/053f712ef20d143818aa07275cf1f4fa55afbf85 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 23 22:17:15 2019 +0200 patch 8.1.2071: when 'wincolor' is set text property changes highlighting Problem: When 'wincolor' is set text property changes highlighting. (Andy Stewart) Solution: Fix combining colors. (closes #4968)
author Bram Moolenaar <Bram@vim.org>
date Mon, 23 Sep 2019 22:30: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