comparison src/testdir/test_assign.vim @ 10930:126405b39964 v8.0.0354

patch 8.0.0354: test to check that setting termcap key fails sometimes commit https://github.com/vim/vim/commit/1c410400fad79068b16dc4c6c7a023463a0858cf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 15:20:03 2017 +0100 patch 8.0.0354: test to check that setting termcap key fails sometimes Problem: Test to check that setting termcap key fails sometimes. Solution: Check for "t_k1" to exist. (Christian Brabandt, closes https://github.com/vim/vim/issues/1459)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 15:30:05 +0100
parents 8233f8f3f7ae
children 5bc07e5d2c1f
comparison
equal deleted inserted replaced
10929:47d8da8762f2 10930:126405b39964
13 let old_t_te = &t_te 13 let old_t_te = &t_te
14 let &t_te = "\<Esc>[yes;" 14 let &t_te = "\<Esc>[yes;"
15 call assert_match('t_te.*^[[yes;', execute("set termcap")) 15 call assert_match('t_te.*^[[yes;', execute("set termcap"))
16 let &t_te = old_t_te 16 let &t_te = old_t_te
17 17
18 if !has('gui_running') 18 if exists("+t_k1")
19 " Key code 19 " Key code
20 let old_t_k1 = &t_k1 20 let old_t_k1 = &t_k1
21 let &t_k1 = "that" 21 let &t_k1 = "that"
22 call assert_match('t_k1.*that', execute("set termcap")) 22 call assert_match('t_k1.*that', execute("set termcap"))
23 let &t_k1 = old_t_k1 23 let &t_k1 = old_t_k1