changeset 26923:85b4bd8f8e5d v8.2.3990

patch 8.2.3990: testing wrong operator Commit: https://github.com/vim/vim/commit/5c75eed758fbeb39825834d51f3ee4e08f137af3 Author: naohiro ono <obcat@icloud.com> Date: Mon Jan 3 11:15:47 2022 +0000 patch 8.2.3990: testing wrong operator Problem: Testing wrong operator. Solution: Test "g@" instead of "r_". (Naohiro Ono, closes https://github.com/vim/vim/issues/9463)
author Bram Moolenaar <Bram@vim.org>
date Mon, 03 Jan 2022 12:30:03 +0100
parents a73b904a2dab
children 9a1e933647aa
files src/testdir/test_normal.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_normal.vim
+++ b/src/testdir/test_normal.vim
@@ -486,7 +486,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, '$'))
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3990,
+/**/
     3989,
 /**/
     3988,