changeset 21626:ebceee9391cf v8.2.1363

patch 8.2.1363: test trying to run terminal when it is not supported Commit: https://github.com/vim/vim/commit/e46a2ed0d8471b93a8b9edd98280d5de4a02c623 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 4 21:04:57 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Aug 2020 21:15:03 +0200
parents 0ae62405d6fb
children 29541e785bdd
files src/testdir/test_termcodes.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1363,
+/**/
     1362,
 /**/
     1361,