diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-29 20:30:00 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-01-29 20:30:40 -0500 |
commit | ca08d5c19117aa6a9b2ec288903e46823348ad07 (patch) | |
tree | 16d88efa71a03ce3039f7e14ab67bad61d0b9a22 /src | |
parent | 406464fa6e6dbacca82746412b24308bc58ddbc7 (diff) | |
download | rneovim-ca08d5c19117aa6a9b2ec288903e46823348ad07.tar.gz rneovim-ca08d5c19117aa6a9b2ec288903e46823348ad07.tar.bz2 rneovim-ca08d5c19117aa6a9b2ec288903e46823348ad07.zip |
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.
https://github.com/vim/vim/commit/35bc7d6c52f516b60d683bf9f0f57266d86e25b9
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_options.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 6fcc372591..f9e4c2af85 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -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') |