]> granicus.if.org Git - vim/commitdiff
patch 8.2.3823: test for visual replace is in wrong function v8.2.3823
authorBram Moolenaar <Bram@vim.org>
Thu, 16 Dec 2021 10:05:41 +0000 (10:05 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 16 Dec 2021 10:05:41 +0000 (10:05 +0000)
Problem:    Test for visual replace is in wrong function.
Solution:   Move it to another function.

src/testdir/test_visual.vim
src/version.c

index ed8efc5dedf479bd4628af2a01aefd8498ba94d9..e40be5dede98f7cb95c0a47bb7cdae305ccb9f51 100644 (file)
@@ -234,10 +234,6 @@ func Test_virtual_replace()
   call assert_equal("\txaaaa", getline(1))
   set softtabstop&
 
-  call setline(1, "xã̳x")
-  normal gg0lvrb
-  call assert_equal("xbx", getline(1))
-
   enew!
   set noai bs&vim
   if exists('save_t_kD')
@@ -669,6 +665,11 @@ func Test_characterwise_visual_mode()
   normal v$rx
   call assert_equal(['x'], getline(1, '$'))
 
+  " replace a character with composing characters
+  call setline(1, "xã̳x")
+  normal gg0lvrb
+  call assert_equal("xbx", getline(1))
+
   bwipe!
 endfunc
 
index 7467b7c912caec04c139bacd42ff09e4ac1f4c6a..0e7a67dfca6ba4ceb3ee525b0330470a0fd42b96 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3823,
 /**/
     3822,
 /**/