summaryrefslogtreecommitdiffstats
path: root/src/testdir/term_util.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-23 17:41:26 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-23 17:41:26 +0200
commit6bf1b52ba2816dffdbd0d994320abfb1586bf666 (patch)
tree6efe9807a11a53aa4893680e9918277816d734f4 /src/testdir/term_util.vim
parent81ed4960482f8baabdd7f95b4d5e39744be88ae7 (diff)
patch 8.2.1732: stuck when win_execute() for a popup causes an errorv8.2.1732
Problem: Stuck when win_execute() for a popup causes an error. Solution: Disable the filter callback on error. (issue #6999)
Diffstat (limited to 'src/testdir/term_util.vim')
-rw-r--r--src/testdir/term_util.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/term_util.vim b/src/testdir/term_util.vim
index 4a5e64989b..53735c8d33 100644
--- a/src/testdir/term_util.vim
+++ b/src/testdir/term_util.vim
@@ -5,6 +5,8 @@ if exists('*CanRunVimInTerminal')
finish
endif
+source shared.vim
+
" For most tests we need to be able to run terminal Vim with 256 colors. On
" MS-Windows the console only has 16 colors and the GUI can't run in a
" terminal.
@@ -51,6 +53,7 @@ endfunc
" "rows" - height of the terminal window (max. 20)
" "cols" - width of the terminal window (max. 78)
" "statusoff" - number of lines the status is offset from default
+" "wait_for_ruler" - if zero then don't wait for ruler to show
func RunVimInTerminal(arguments, options)
" If Vim doesn't exit a swap file remains, causing other tests to fail.
" Remove it here.