]> granicus.if.org Git - vim/commitdiff
patch 8.0.0354: test to check that setting termcap key fails sometimes v8.0.0354
authorBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2017 14:20:03 +0000 (15:20 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2017 14:20:03 +0000 (15:20 +0100)
Problem:    Test to check that setting termcap key fails sometimes.
Solution:   Check for "t_k1" to exist. (Christian Brabandt, closes #1459)

src/testdir/test_assign.vim
src/version.c

index 4a4c644cff65f90b3b7d12f7fcf1b590d4246fd1..efc9d086be9fa62c360216349b92e5f10da097ac 100644 (file)
@@ -15,7 +15,7 @@ func Test_let_termcap()
   call assert_match('t_te.*^[[yes;', execute("set termcap"))
   let &t_te = old_t_te
 
-  if !has('gui_running')
+  if exists("+t_k1")
     " Key code
     let old_t_k1 = &t_k1
     let &t_k1 = "that"
index da1ca4b9e27b02ed0a44b17486374d053ffd7322..9494e0327e5855e30a544c6c755c9310cd6565e3 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    354,
 /**/
     353,
 /**/