Mercurial > vim
view src/testdir/test_erasebackword.vim @ 20504:7fb80f486aad v8.2.0806
patch 8.2.0806: using "func!" after vim9script gives confusing error
Commit: https://github.com/vim/vim/commit/74fae513f8032cfa9e129eedc33454f0bf68668b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 21 21:50:58 2020 +0200
patch 8.2.0806: using "func!" after vim9script gives confusing error
Problem: using "func!" after vim9script gives confusing error.
Solution: Give E477. (closes https://github.com/vim/vim/issues/6107)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 May 2020 22:00: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