Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 23748:93f90f2ff4e9 v8.2.2415
patch 8.2.2415: no way to check for the cmdwin feature
Commit: https://github.com/vim/vim/commit/21829c5f2c86cd525c8468121b4fc54c5d75bf6e
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 26 22:42:21 2021 +0100
patch 8.2.2415: no way to check for the cmdwin feature
Problem: No way to check for the cmdwin feature, cmdline_hist is now always
enabled.
Solution: Add has('cmdwin') support. Skip arglist test on Windows
temporarily.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 Jan 2021 22:45:04 +0100 |
parents | 0f306712eb58 |
children | 65d11d6ed4c2 |
comparison
equal
deleted
inserted
replaced
23747:f0d11de94492 | 23748:93f90f2ff4e9 |
---|---|
2395 call delete('XSafeState') | 2395 call delete('XSafeState') |
2396 endfunc | 2396 endfunc |
2397 | 2397 |
2398 func Test_autocmd_CmdWinEnter() | 2398 func Test_autocmd_CmdWinEnter() |
2399 CheckRunVimInTerminal | 2399 CheckRunVimInTerminal |
2400 " There is not cmdwin switch, so | 2400 CheckFeature cmdwin |
2401 " test for cmdline_hist | 2401 |
2402 " (both are available with small builds) | |
2403 CheckFeature cmdline_hist | |
2404 let lines =<< trim END | 2402 let lines =<< trim END |
2405 let b:dummy_var = 'This is a dummy' | 2403 let b:dummy_var = 'This is a dummy' |
2406 autocmd CmdWinEnter * quit | 2404 autocmd CmdWinEnter * quit |
2407 let winnr = winnr('$') | 2405 let winnr = winnr('$') |
2408 END | 2406 END |