Skip to content

Commit e46a2ed

Browse files
committed
patch 8.2.1363: test trying to run terminal when it is not supported
Problem: Test trying to run terminal when it is not supported. Solution: Check if Vim can be run in a terminal.
1 parent ecd34bf commit e46a2ed

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_termcodes.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ CheckUnix
88
source shared.vim
99
source mouse.vim
1010
source view_util.vim
11+
source term_util.vim
1112

1213
func Test_term_mouse_left_click()
1314
new
@@ -1895,6 +1896,7 @@ func Test_get_termcode()
18951896
endfunc
18961897

18971898
func Test_list_builtin_terminals()
1899+
CheckRunVimInTerminal
18981900
let buf = RunVimInTerminal('', #{rows: 14})
18991901
call term_sendkeys(buf, ":set cmdheight=3\<CR>")
19001902
call term_wait(buf, 100)

src/version.c

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

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1363,
757759
/**/
758760
1362,
759761
/**/

0 commit comments

Comments
 (0)