diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-02 16:54:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-02 16:54:09 +0200 |
commit | 85045a73db258a054a17fd52a67eb5cd02a788dc (patch) | |
tree | 43781a190c0dea11e78d9fd94d9e36d637ad3871 | |
parent | fa0ad0bb0b4255e64ebcf9269d60a942e0ae7ff9 (diff) | |
download | vim-85045a73db258a054a17fd52a67eb5cd02a788dc.zip |
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.
-rw-r--r-- | src/testdir/test_startup.vim | 13 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 2b003c7cf..2185b4dc2 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -208,3 +208,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 = 'unknown' + let out = system(GetVimCommand() . ' -c''set term'' -c cq') + call assert_match("defaulting to 'ansi'", out) + let $TERM = save_term +endfunc diff --git a/src/version.c b/src/version.c index dc7cfb53c..8de7e6684 100644 --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 538, +/**/ 537, /**/ 536, |