# HG changeset patch # User Bram Moolenaar # Date 1559817905 -7200 # Node ID b2179cf1a0a55ba41b9e397f70d39c255c2a68b4 # Parent 17aa054c8ec761591fdcdfe47afd71fddbf2c989 patch 8.1.1474: 'ttybuiltin' is not tested commit https://github.com/vim/vim/commit/9aeb33639f49511cc16962a11a40844693ddb15e Author: Bram Moolenaar Date: Thu Jun 6 12:36:15 2019 +0200 patch 8.1.1474: 'ttybuiltin' is not tested Problem: 'ttybuiltin' is not tested. Solution: At least test that it doesn't break things. diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim --- a/src/testdir/test_termcodes.vim +++ b/src/testdir/test_termcodes.vim @@ -717,4 +717,24 @@ func Test_get_termcode() set t_k1= set t_k1& call assert_equal(k1, &t_k1) + + " use external termcap first + set nottybuiltin + set t_k1= + set t_k1& + " when using external termcap may get something else, but it must not be + " empty, since we would fallback to the builtin one. + call assert_notequal('', &t_k1) + + if &term =~ 'xterm' + " use internal termcap first + let term_save = &term + let &term = 'builtin_' .. &term + set t_k1= + set t_k1& + call assert_equal(k1, &t_k1) + let &term = term_save + endif + + set ttybuiltin endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1474, +/**/ 1473, /**/ 1472,