Mercurial > vim
view src/testdir/test_erasebackword.vim @ 27665:a6ffe874a24b v8.2.4358
patch 8.2.4358: Vim9: line number of exception is not set
Commit: https://github.com/vim/vim/commit/90a57168a42048eb7e176a4f9acf607c31e8074f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 12 14:23:17 2022 +0000
patch 8.2.4358: Vim9: line number of exception is not set
Problem: Vim9: line number of exception is not set.
Solution: Set the line number before throwing an exception. (closes https://github.com/vim/vim/issues/9755)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Feb 2022 15:30:03 +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