0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-08-04 21:04:57 +02:00
parent ecd34bf55d
commit e46a2ed0d8
2 changed files with 4 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ CheckUnix
source shared.vim source shared.vim
source mouse.vim source mouse.vim
source view_util.vim source view_util.vim
source term_util.vim
func Test_term_mouse_left_click() func Test_term_mouse_left_click()
new new
@@ -1895,6 +1896,7 @@ func Test_get_termcode()
endfunc endfunc
func Test_list_builtin_terminals() func Test_list_builtin_terminals()
CheckRunVimInTerminal
let buf = RunVimInTerminal('', #{rows: 14}) let buf = RunVimInTerminal('', #{rows: 14})
call term_sendkeys(buf, ":set cmdheight=3\<CR>") call term_sendkeys(buf, ":set cmdheight=3\<CR>")
call term_wait(buf, 100) call term_wait(buf, 100)

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1363,
/**/ /**/
1362, 1362,
/**/ /**/