@@ -1623,7 +1623,7 @@ func Test_search_match_at_curpos()
1623
1623
call search (' .' , ' c' )
1624
1624
call assert_equal ([3 , 5 ], [line (' .' ), col (' .' )])
1625
1625
1626
- close !
1626
+ bw !
1627
1627
endfunc
1628
1628
1629
1629
" Test for error cases with the search() function
@@ -1836,7 +1836,7 @@ func Test_search_pat_not_found()
1836
1836
call assert_fails (' normal n' , ' E385:' )
1837
1837
call assert_fails (' normal N' , ' E384:' )
1838
1838
set wrapscan &
1839
- close
1839
+ bw
1840
1840
endfunc
1841
1841
1842
1842
" Test for v:searchforward variable
@@ -1852,7 +1852,7 @@ func Test_searchforward_var()
1852
1852
let v: searchforward = 1
1853
1853
normal N
1854
1854
call assert_equal (1 , line (' .' ))
1855
- close !
1855
+ bw !
1856
1856
endfunc
1857
1857
1858
1858
" Test for invalid regular expressions
@@ -1913,7 +1913,7 @@ func Test_search_in_visual_area()
1913
1913
call assert_equal ([2 , 5 ], [line (' .' ), col (' .' )])
1914
1914
exe " normal 2GVj$?\\ %Vbar\<CR>\<Esc> "
1915
1915
call assert_equal ([3 , 5 ], [line (' .' ), col (' .' )])
1916
- close !
1916
+ bw !
1917
1917
endfunc
1918
1918
1919
1919
" Test for searching with 'smartcase' and 'ignorecase'
@@ -1941,7 +1941,7 @@ func Test_search_smartcase()
1941
1941
call assert_equal ([2 , 4 ], [line (' .' ), col (' .' )])
1942
1942
1943
1943
set ignorecase & smartcase &
1944
- close !
1944
+ bw !
1945
1945
endfun
1946
1946
1947
1947
" Test 'smartcase' with utf-8.
@@ -2039,7 +2039,7 @@ func Test_search_offset()
2039
2039
exe " normal /four/e+1\<CR> "
2040
2040
call assert_equal ([2 , 10 ], [line (' .' ), col (' .' )])
2041
2041
2042
- close !
2042
+ bw !
2043
2043
endfunc
2044
2044
2045
2045
" Test for searching for matching parenthesis using %
@@ -2065,7 +2065,7 @@ func Test_search_match_paren()
2065
2065
normal 20 |%
2066
2066
call assert_equal (4 , col (' .' ))
2067
2067
set virtualedit &
2068
- close !
2068
+ bw !
2069
2069
endfunc
2070
2070
2071
2071
" Test for searching a pattern and stopping before a specified line
@@ -2078,7 +2078,7 @@ func Test_search_stopline()
2078
2078
call cursor (4 , 1 )
2079
2079
call assert_equal (0 , search (' vim' , ' bn' , 2 ))
2080
2080
call assert_equal (1 , search (' vim' , ' bn' , 1 ))
2081
- close !
2081
+ bw !
2082
2082
endfunc
2083
2083
2084
2084
func Test_incsearch_highlighting_newline ()
0 commit comments