commit 785422ad54b6ce97cdec994862725b2846775e88
parent 5fcf701ba15d1ab4d7a46efaee01bcc52807fae2
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 5 Jul 2022 17:00:36 +0800
vim-patch:8.2.3990: testing wrong operator
Problem: Testing wrong operator.
Solution: Test "g@" instead of "r_". (Naohiro Ono, closes vim/vim#9463)
https://github.com/vim/vim/commit/5c75eed758fbeb39825834d51f3ee4e08f137af3
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
@@ -428,7 +428,7 @@ func Test_normal09c_operatorfunc()
set operatorfunc=Underscorize
new
call setline(1, ['first', 'first', 'third', 'third', 'second'])
- normal! 1GVjr_
+ normal! 1GVjg@
normal! 5G.
normal! 3G.
call assert_equal(['_____', '_____', '_____', '_____', '______'], getline(1, '$'))