]> granicus.if.org Git - vim/commitdiff
patch 8.2.3990: testing wrong operator v8.2.3990
authornaohiro ono <obcat@icloud.com>
Mon, 3 Jan 2022 11:15:47 +0000 (11:15 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 3 Jan 2022 11:15:47 +0000 (11:15 +0000)
Problem:    Testing wrong operator.
Solution:   Test "g@" instead of "r_". (Naohiro Ono, closes #9463)

src/testdir/test_normal.vim
src/version.c

index 90b7f9d9bb09cc1d402700402605632ca7cce4c2..4a09964e970b61e5e3c84da5e9f5d9a00a77e49b 100644 (file)
@@ -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, '$'))
index 6cff7cc5fad987fd3ac50b08eaf10e3f07d52def..6ad10903372b17f86ce49c61cb6b4de5bc27f8ce 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3990,
 /**/
     3989,
 /**/