summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-04 21:04:57 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-04 21:04:57 +0200
commite46a2ed0d8471b93a8b9edd98280d5de4a02c623 (patch)
treee681ec13540558f2c1a28742dbeddd57dbfcb875 /src
parentecd34bf55d72f530859e290ac02ee41f9fb27cce (diff)
downloadvim-git-e46a2ed0d8471b93a8b9edd98280d5de4a02c623.tar.gz
patch 8.2.1363: test trying to run terminal when it is not supportedv8.2.1363
Problem: Test trying to run terminal when it is not supported. Solution: Check if Vim can be run in a terminal.
Diffstat (limited to 'src')
-rw-r--r--src/testdir/test_termcodes.vim2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index da2f066ac..a228f1bec 100644
--- 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)
diff --git a/src/version.c b/src/version.c
index 251a59431..376c8fd64 100644
--- 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,