summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-06 11:59:18 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-06 11:59:18 +0200
commitde6dbb452ad677abab05a84bc48b968bc5315fa4 (patch)
tree37696b0a32d1ab4c0338ea1ca1954c13d84ad2bc
parent32e1977012912cd5d7bc762dd41197bc3f1a1370 (diff)
patch 8.1.1472: add_termcap_entry() is not testedv8.1.1472
Problem: Add_termcap_entry() is not tested. Solution: Add a simple test.
-rw-r--r--src/testdir/test_termcodes.vim8
-rw-r--r--src/version.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index d182761ddd..d602ee5d5f 100644
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -626,7 +626,6 @@ func Test_xterm_mouse_click_in_fold_columns()
endfunc
" This only checks if the sequence is recognized.
-" TODO: check that the values were parsed properly
func Test_term_rgb_response()
set t_RF=x
set t_RB=y
@@ -712,3 +711,10 @@ func Test_xx_term_style_response()
set t_RV=
endfunc
+
+func Test_get_termcode()
+ let k1 = &t_k1
+ set t_k1=
+ set t_k1&
+ call assert_equal(k1, &t_k1)
+endfunc
diff --git a/src/version.c b/src/version.c
index 366e56b748..ca2e17498e 100644
--- 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 */
/**/
+ 1472,
+/**/
1471,
/**/
1470,