forked from aniani/vim
patch 9.0.1354: "gr CTRL-G" stays in virtual replace mode
Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty) Solution: Prepend CTRL-V before control characters. (closes #12045)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user