summaryrefslogtreecommitdiffstats
path: root/src/testdir/term_util.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-26 23:08:54 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-26 23:08:54 +0200
commitd2842ea60bd608b7f9ec93c77d3f36a8e3bf5fe9 (patch)
treed10208c36706ae29c65fba43fbf02aeced49eccd /src/testdir/term_util.vim
parentd2c1fb476d5816db129eb428ffef6a81027eb13a (diff)
patch 8.1.2080: the terminal API is limited and can't be disabledv8.1.2080
Problem: The terminal API is limited and can't be disabled. Solution: Add term_setapi() to set the function prefix. (Ozaki Kiichi, closes #2907)
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r--src/testdir/term_util.vim9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim
index 1cfac0e9d0..4eaf6d8bee 100644
--- a/src/testdir/term_util.vim
+++ b/src/testdir/term_util.vim
@@ -61,11 +61,16 @@ func RunVimInTerminal(arguments, options)
let cmd = GetVimCommandCleanTerm() .. a:arguments
- let buf = term_start(cmd, {
+ let options = {
\ 'curwin': 1,
\ 'term_rows': rows,
\ 'term_cols': cols,
- \ })
+ \ }
+ " Accept other options whose name starts with 'term_'.
+ call extend(options, filter(copy(a:options), 'v:key =~# "^term_"'))
+
+ let buf = term_start(cmd, options)
+
if &termwinsize == ''
" in the GUI we may end up with a different size, try to set it.
if term_getsize(buf) != [rows, cols]