Commit: patch 9.1.1506: tests: missing cleanup in Test_search_cmdline_incsearch_highlight()

1 view
Skip to first unread message

Christian Brabandt

unread,
Jul 3, 2025, 2:15:19 PM7/3/25
to vim...@googlegroups.com
patch 9.1.1506: tests: missing cleanup in Test_search_cmdline_incsearch_highlight()

Commit: https://github.com/vim/vim/commit/29b29c6b303c891fa32ac14b0317fa4a342e0418
Author: zeertzjq <zeer...@outlook.com>
Date: Thu Jul 3 20:02:02 2025 +0200

patch 9.1.1506: tests: missing cleanup in Test_search_cmdline_incsearch_highlight()

Problem: tests: missing cleanup test_override('char_avail', 0) in
Test_search_cmdline_incsearch_highlight().
Solution: Add the missing cleanup (zeertzjq).

closes: #17655

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

diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 8ec513e03..446d5ecd3 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -843,6 +843,7 @@ func Test_search_cmdline_incsearch_highlight()

" clean up
set noincsearch nohlsearch
+ call test_override("char_avail", 0)
bw!
endfunc

diff --git a/src/version.c b/src/version.c
index 48d9a44fe..d5a882da6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =

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