Mercurial > vim
diff src/testdir/test_edit.vim @ 32049:717a1a8dc751 v9.0.1356
patch 9.0.1356: cannot cancel "gr" with Esc
Commit: https://github.com/vim/vim/commit/4f026ea9f1ad9db262f0dba522768c84e5ae37b4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Feb 26 14:47:24 2023 +0000
patch 9.0.1356: cannot cancel "gr" with Esc
Problem: Cannot cancel "gr" with Esc.
Solution: Make "gr<Esc>" do nothing. (closes https://github.com/vim/vim/issues/12064)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Feb 2023 16:00:05 +0100 |
parents | 55926b4f2246 |
children | baafb135b0cb |
line wrap: on
line diff
--- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -573,6 +573,7 @@ func Test_edit_CTRL_G() call assert_equal([0, 3, 7, 0], getpos('.')) call feedkeys("i\<c-g>j\<esc>", 'tnix') call assert_equal([0, 3, 6, 0], getpos('.')) + call assert_nobeep("normal! i\<c-g>\<esc>") bw! endfunc @@ -2064,20 +2065,6 @@ func Test_edit_CTRL_hat() bwipe! endfunc -" Test "gr" followed by an Insert mode command does get out of Insert mode. -func Test_edit_gr_special() - enew - call setline(1, ['abcdef', 'xxxxxx']) - exe "normal! gr\<C-O>lx" - call assert_equal("\<C-O>def", getline(1)) - - call setline(1, 'abcdef') - exe "normal! 0gr\<C-G>lx" - call assert_equal("\<C-G>def", getline(1)) - - bwipe! -endfunc - " Weird long file name was going over the end of NameBuff func Test_edit_overlong_file_name() CheckUnix