diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2018-06-24 14:23:33 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-24 20:23:33 +0200 |
commit | 89cb304ea0ac7fb94e7ccd319c0f98b8f6d3cb9a (patch) | |
tree | d1788abf0bac06bd5046f7156a30c1d312f3ab24 | |
parent | 15bd936b965fae922b30d1ead5780b6e1c4886ca (diff) | |
download | rneovim-89cb304ea0ac7fb94e7ccd319c0f98b8f6d3cb9a.tar.gz rneovim-89cb304ea0ac7fb94e7ccd319c0f98b8f6d3cb9a.tar.bz2 rneovim-89cb304ea0ac7fb94e7ccd319c0f98b8f6d3cb9a.zip |
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.
https://github.com/vim/vim/commit/85045a73db258a054a17fd52a67eb5cd02a788dc
* 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.
https://github.com/vim/vim/commit/08f88b139d2f93661ed2b17214ee6b308b4edb5b
* oldtest: nvim does not support ':set term'
-rw-r--r-- | src/nvim/testdir/test_startup.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index 495c561991..7b77402115 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -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 |