summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autocmd.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-05 11:24:46 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-05 11:24:46 +0100
commitd1955987147a299d7bca30cd1b5792535ff0745c (patch)
tree3c91f4e3d131baeeb744a2623c2a850ed226cfd6 /src/testdir/test_autocmd.vim
parent75008661821eee6989476908feaf64a9dea03e05 (diff)
patch 9.0.0663: tests check for +cmdwin feature which is always presentv9.0.0663
Problem: Tests check for +cmdwin feature which is always present. Solution: Remove the checks. (closes #11287)
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r--src/testdir/test_autocmd.vim25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim
index 70f0f553a2..3698fd57ee 100644
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -2778,7 +2778,6 @@ endfunc
func Test_autocmd_CmdWinEnter()
CheckRunVimInTerminal
- CheckFeature cmdwin
let lines =<< trim END
augroup vimHints | au! | augroup END
@@ -3418,19 +3417,17 @@ func Test_mode_changes()
call assert_equal(5, g:nori_to_any)
endif
- if has('cmdwin')
- let g:n_to_c = 0
- au ModeChanged n:c let g:n_to_c += 1
- let g:c_to_n = 0
- au ModeChanged c:n let g:c_to_n += 1
- let g:mode_seq += ['c', 'n', 'c', 'n']
- call feedkeys("q:\<C-C>\<Esc>", 'tnix')
- call assert_equal(len(g:mode_seq) - 1, g:index)
- call assert_equal(2, g:n_to_c)
- call assert_equal(2, g:c_to_n)
- unlet g:n_to_c
- unlet g:c_to_n
- endif
+ let g:n_to_c = 0
+ au ModeChanged n:c let g:n_to_c += 1
+ let g:c_to_n = 0
+ au ModeChanged c:n let g:c_to_n += 1
+ let g:mode_seq += ['c', 'n', 'c', 'n']
+ call feedkeys("q:\<C-C>\<Esc>", 'tnix')
+ call assert_equal(len(g:mode_seq) - 1, g:index)
+ call assert_equal(2, g:n_to_c)
+ call assert_equal(2, g:c_to_n)
+ unlet g:n_to_c
+ unlet g:c_to_n
au! ModeChanged
delfunc TestMode