Mercurial > vim
view src/testdir/test_erasebackword.vim @ 26205:9e5e331828da v8.2.3634
patch 8.2.3634: error for already defined function uses wrong line number
Commit: https://github.com/vim/vim/commit/d604d78e7b2e63d118814d0fa0b4b702ec52aeed
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 20 21:46:20 2021 +0000
patch 8.2.3634: error for already defined function uses wrong line number
Problem: Error for already defined function uses wrong line number.
Solution: Set SOURCING_LNUM before giving the error message. (closes https://github.com/vim/vim/issues/9085)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 20 Nov 2021 23:00:04 +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