changeset 22387:36f13f35bd78 v8.2.1742

patch 8.2.1742: test still fails without the terminal feature Commit: https://github.com/vim/vim/commit/7e9210ea5320e0c3fd9fd93e3f3f1a59e029cf46 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 25 23:12:51 2020 +0200 patch 8.2.1742: test still fails without the terminal feature Problem: Test still fails without the terminal feature. Solution: Put check for terminal feature in separate function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Sep 2020 23:15:03 +0200
parents 21d63dec6f6a
children 8d9d6be4de03
files src/testdir/test_vim9_script.vim src/version.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -2831,9 +2831,14 @@ def Test_unset_any_variable()
   CheckDefAndScriptSuccess(lines)
 enddef
 
-def Test_define_func_at_command_line()
+func Test_define_func_at_command_line()
   CheckRunVimInTerminal
 
+  " call indirectly to avoid compilation error for missing functions
+  call Run_Test_define_func_at_command_line()
+endfunc
+
+def Run_Test_define_func_at_command_line()
   # run in a separate Vim instance to avoid the script context
   let lines =<< trim END
     func CheckAndQuit()
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1742,
+/**/
     1741,
 /**/
     1740,