Mercurial > vim
comparison src/testdir/test_termcodes.vim @ 16947:b2179cf1a0a5 v8.1.1474
patch 8.1.1474: 'ttybuiltin' is not tested
commit https://github.com/vim/vim/commit/9aeb33639f49511cc16962a11a40844693ddb15e
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 12:45:05 +0200 |
parents | 5f3e960ce76d |
children | f38fcbf343ce |
comparison
equal
deleted
inserted
replaced
16946:17aa054c8ec7 | 16947:b2179cf1a0a5 |
---|---|
715 func Test_get_termcode() | 715 func Test_get_termcode() |
716 let k1 = &t_k1 | 716 let k1 = &t_k1 |
717 set t_k1= | 717 set t_k1= |
718 set t_k1& | 718 set t_k1& |
719 call assert_equal(k1, &t_k1) | 719 call assert_equal(k1, &t_k1) |
720 endfunc | 720 |
721 " use external termcap first | |
722 set nottybuiltin | |
723 set t_k1= | |
724 set t_k1& | |
725 " when using external termcap may get something else, but it must not be | |
726 " empty, since we would fallback to the builtin one. | |
727 call assert_notequal('', &t_k1) | |
728 | |
729 if &term =~ 'xterm' | |
730 " use internal termcap first | |
731 let term_save = &term | |
732 let &term = 'builtin_' .. &term | |
733 set t_k1= | |
734 set t_k1& | |
735 call assert_equal(k1, &t_k1) | |
736 let &term = term_save | |
737 endif | |
738 | |
739 set ttybuiltin | |
740 endfunc |