]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1974: tests: missing cleanup in Test_bwipe_during_save() v9.1.1974
authorzeertzjq <zeertzjq@outlook.com>
Fri, 12 Dec 2025 07:47:18 +0000 (08:47 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 12 Dec 2025 07:47:18 +0000 (08:47 +0100)
Problem:  tests: missing cleanup in Test_bwipe_during_save().
Solution: Reset &charconvert.

closes: #18908

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_buffer.vim
src/version.c

index d688a8671e801d7312d26ec60910ed20dd0536ea..2113feddfca070ea345db98b539e5210841fb0be 100644 (file)
@@ -230,6 +230,7 @@ func Test_bwipe_during_save()
   set charconvert=execute('%bw!')
   call assert_fails('write ++enc=lmao boom', 'E937:')
 
+  set charconvert&
   %bwipe
 endfunc
 
index 43bb41282ccf90de8d0392da3616cf08b238df0c..a461d58c96bf25f2e774c1475ca8304577e3442f 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1974,
 /**/
     1973,
 /**/