]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0016: test name used twice, option not restored properly v8.2.0016
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Dec 2019 19:29:26 +0000 (20:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Dec 2019 19:29:26 +0000 (20:29 +0100)
Problem:    Test name used twice, option not restored properly.
Solution:   Rename function, restore option with "&".

src/testdir/test_textformat.vim
src/version.c

index 1364dd78c16c36b7b9080b4e6a0379724b4ce69a..2223be952c793178d98ee98afcdbbaa774c5774b 100644 (file)
@@ -906,7 +906,7 @@ func Test_ra_multibyte()
 endfunc
 
 " Test for 'whichwrap' with multi-byte character
-func Test_whichwrap()
+func Test_whichwrap_multi_byte()
   new
   let t =<< trim END
     á
@@ -917,7 +917,7 @@ func Test_whichwrap()
 
   set whichwrap+=h
   normal dh
-  set whichwrap-=h
+  set whichwrap&
 
   let expected =<< trim END
     áx
index ed57cd8d0451fe21c670e6c5f47b951d680b763a..e299ee9741c2ff96a8aa1fcd3ff227c783d9683e 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    16,
 /**/
     15,
 /**/