0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.1.1474: 'ttybuiltin' is not tested

Problem:    'ttybuiltin' is not tested.
Solution:   At least test that it doesn't break things.
This commit is contained in:
Bram Moolenaar
2019-06-06 12:36:15 +02:00
parent 4a792c87b9
commit 9aeb33639f
2 changed files with 22 additions and 0 deletions

View File

@@ -717,4 +717,24 @@ func Test_get_termcode()
set t_k1= set t_k1=
set t_k1& set t_k1&
call assert_equal(k1, &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 endfunc

View File

@@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1474,
/**/ /**/
1473, 1473,
/**/ /**/