mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
vim-patch:8.0.0{538,539} (#8615)
* vim-patch:8.0.0538: no test for falling back to default term value Problem: No test for falling back to default term value. Solution: Add a test.85045a73db
* vim-patch:8.0.0539: startup test fails on Mac Problem: Startup test fails on Mac. Solution: Use another term name, "unknown" is known. Avoid a 2 second delay.08f88b139d
* oldtest: nvim does not support ':set term'
This commit is contained in:

committed by
Justin M. Keyes

parent
15bd936b96
commit
89cb304ea0
@@ -251,3 +251,16 @@ func Test_silent_ex_mode()
|
||||
let out = system(GetVimCommand() . '-u NONE -es -c''set verbose=1|h|exe "%norm\<c-y>\<c-d>"'' -c cq')
|
||||
call assert_notmatch('E315:', out)
|
||||
endfunc
|
||||
|
||||
func Test_default_term()
|
||||
if !has('unix') || has('gui_running')
|
||||
" can't get output of Vim.
|
||||
return
|
||||
endif
|
||||
|
||||
let save_term = $TERM
|
||||
let $TERM = 'unknownxxx'
|
||||
let out = system(GetVimCommand() . ' -c ''echo &term'' -c cq')
|
||||
call assert_match('nvim', out)
|
||||
let $TERM = save_term
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user