Mercurial > vim
view src/testdir/test_erasebackword.vim @ 28769:78fc778de076 v8.2.4909
patch 8.2.4909: MODE_ enum entries names are too generic
Commit: https://github.com/vim/vim/commit/ac4174e166dd76c72907caa76db0e7cd878ac667
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 7 16:38:24 2022 +0100
patch 8.2.4909: MODE_ enum entries names are too generic
Problem: MODE_ enum entries names are too generic.
Solution: use CH_MODE_.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 07 May 2022 17:45:02 +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