Skip to content

Commit 1fb0d49

Browse files
committed
patch 8.0.0304: assign test fails in the GUI
Problem: Assign test fails in the GUI. Solution: Skip the test for setting t_k1.
1 parent a189184 commit 1fb0d49

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/testdir/test_assign.vim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ func Test_let_termcap()
1515
call assert_match('t_te.*^[[yes;', execute("set termcap"))
1616
let &t_te = old_t_te
1717

18-
" Key code
19-
let old_t_k1 = &t_k1
20-
let &t_k1 = "that"
21-
call assert_match('t_k1.*that', execute("set termcap"))
22-
let &t_k1 = old_t_k1
18+
if !has('gui_running')
19+
" Key code
20+
let old_t_k1 = &t_k1
21+
let &t_k1 = "that"
22+
call assert_match('t_k1.*that', execute("set termcap"))
23+
let &t_k1 = old_t_k1
24+
endif
2325

2426
call assert_fails('let x = &t_xx', 'E15')
2527
let &t_xx = "yes"

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
304,
767769
/**/
768770
303,
769771
/**/

0 commit comments

Comments
 (0)