Mercurial > vim
view src/testdir/test_erasebackword.vim @ 17972:a170c48e0f91 v8.1.1982
patch 8.1.1982: more functions can be used as methods
Commit: https://github.com/vim/vim/commit/6a124e622cfe52619781c6a02119177a44d09210
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 4 18:15:19 2019 +0200
patch 8.1.1982: more functions can be used as methods
Problem: More functions can be used as methods.
Solution: Make popup functions usable as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Sep 2019 18: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