mirror of
https://github.com/neovim/neovim.git
synced 2026-01-24 21:56:03 +00:00
vim-patch:8.1.0445: setting 'term' does not store location for termcap options
Problem: Setting 'term' does not store location for termcap options.
Solution: Set the script context for termcap options that are changed when
'term' is set.
35bc7d6c52
This commit is contained in:
@@ -277,6 +277,18 @@ func Test_set_errors()
|
||||
call assert_fails('set t_foo=', 'E846:')
|
||||
endfunc
|
||||
|
||||
" Must be executed before other tests that set 'term'.
|
||||
func Test_000_term_option_verbose()
|
||||
let verb_cm = execute('verbose set t_cm')
|
||||
call assert_notmatch('Last set from', verb_cm)
|
||||
|
||||
let term_save = &term
|
||||
set term=ansi
|
||||
let verb_cm = execute('verbose set t_cm')
|
||||
call assert_match('Last set from.*test_options.vim', verb_cm)
|
||||
let &term = term_save
|
||||
endfunc
|
||||
|
||||
func Test_set_ttytype()
|
||||
" Nvim does not support 'ttytype'.
|
||||
if !has('nvim') && !has('gui_running') && has('unix')
|
||||
|
||||
Reference in New Issue
Block a user