]> granicus.if.org Git - vim/commitdiff
patch 8.2.1363: test trying to run terminal when it is not supported v8.2.1363
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Aug 2020 19:04:57 +0000 (21:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Aug 2020 19:04:57 +0000 (21:04 +0200)
Problem:    Test trying to run terminal when it is not supported.
Solution:   Check if Vim can be run in a terminal.

src/testdir/test_termcodes.vim
src/version.c

index da2f066ac73965ca22705d09740eb86bd8812dee..a228f1bec4fba1f7d4010c511d804602fdd26ff0 100644 (file)
@@ -8,6 +8,7 @@ CheckUnix
 source shared.vim
 source mouse.vim
 source view_util.vim
+source term_util.vim
 
 func Test_term_mouse_left_click()
   new
@@ -1895,6 +1896,7 @@ func Test_get_termcode()
 endfunc
 
 func Test_list_builtin_terminals()
+  CheckRunVimInTerminal
   let buf = RunVimInTerminal('', #{rows: 14})
   call term_sendkeys(buf, ":set cmdheight=3\<CR>")
   call term_wait(buf, 100)
index 251a59431cb56c2b06f28ab2c3e4a0875867b8eb..376c8fd641d9e5fede291f1cd2cde6f3f35d9ab7 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1363,
 /**/
     1362,
 /**/