diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-02-25 14:24:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-25 14:24:44 +0000 |
commit | d6a4ea3aa0d3f4a886ea900e94bf4e8ca8ae8d63 (patch) | |
tree | 08280d9941371f9a9138a61082cb65361931ef04 /src/testdir | |
parent | 6d611de58c8e324491415da8e79c6bd3faa3e848 (diff) |
patch 9.0.1354: "gr CTRL-G" stays in virtual replace modev9.0.1354
Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty)
Solution: Prepend CTRL-V before control characters. (closes #12045)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_edit.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim index 1b00ae98f9..f0896d2c5c 100644 --- a/src/testdir/test_edit.vim +++ b/src/testdir/test_edit.vim @@ -2068,8 +2068,12 @@ endfunc func Test_edit_gr_special() enew call setline(1, ['abcdef', 'xxxxxx']) - exe "normal! gr\<C-O>x" - call assert_equal('bcdef', getline(1)) + 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 |