diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-23 20:13:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-23 20:13:04 +0000 |
commit | 2824d1ee325ea61855c26f77e7a4e095b9606720 (patch) | |
tree | 9222f05ac6de32b6c72e67ef1c4d40604a7d23c1 /src/testdir/test_edit.vim | |
parent | ca06b30073de22dc120b532e90fbee2a10ef9772 (diff) |
patch 9.0.1347: "gr CTRL-O" stays in Insert modev9.0.1347
Problem: "gr CTRL-O" stays in Insert mode. (Pierre Ganty)
Solution: Do not set restart_edit when "cmdchar" is 'v'. (closes #12045)
Diffstat (limited to 'src/testdir/test_edit.vim')
-rw-r--r-- | src/testdir/test_edit.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 9caa93128a..1b00ae98f9 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -2064,6 +2064,16 @@ 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>x" + call assert_equal('bcdef', getline(1)) + + bwipe! +endfunc + " Weird long file name was going over the end of NameBuff func Test_edit_overlong_file_name() CheckUnix |