Mercurial > vim
view src/testdir/test_erasebackword.vim @ 31055:5a95f0c630b1 v9.0.0862
patch 9.0.0862: default value of 'endoffile' is wrong
Commit: https://github.com/vim/vim/commit/0aad88f073602849d1623122eb3c323f8e252def
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 12 11:54:26 2022 +0000
patch 9.0.0862: default value of 'endoffile' is wrong
Problem: Default value of 'endoffile' is wrong.
Solution: The default must be 'noendoffile'.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Nov 2022 13:00:05 +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