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:
Jan Edmund Lazo
2020-01-29 20:30:00 -05:00
parent 406464fa6e
commit ca08d5c191

View File

@@ -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')