Commit: patch 9.1.1974: tests: missing cleanup in Test_bwipe_during_save()

1 view
Skip to first unread message

Christian Brabandt

unread,
Dec 12, 2025, 3:00:54 AM (4 days ago) Dec 12
to vim...@googlegroups.com
patch 9.1.1974: tests: missing cleanup in Test_bwipe_during_save()

Commit: https://github.com/vim/vim/commit/353103e59afddbfae8432e715217b809e8e15998
Author: zeertzjq <zeer...@outlook.com>
Date: Fri Dec 12 08:47:18 2025 +0100

patch 9.1.1974: tests: missing cleanup in Test_bwipe_during_save()

Problem: tests: missing cleanup in Test_bwipe_during_save().
Solution: Reset &charconvert.

closes: #18908

Signed-off-by: zeertzjq <zeer...@outlook.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_buffer.vim b/src/testdir/test_buffer.vim
index d688a8671..2113feddf 100644
--- a/src/testdir/test_buffer.vim
+++ b/src/testdir/test_buffer.vim
@@ -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

diff --git a/src/version.c b/src/version.c
index 43bb41282..a461d58c9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1974,
/**/
1973,
/**/
Reply all
Reply to author
Forward
0 new messages