summaryrefslogtreecommitdiffstats
path: root/src/testdir/shared.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-04 14:20:41 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-04 14:20:41 +0200
commit0d702028feb859e6bde9a0c943d398d86294beb7 (patch)
tree0202bf4cc0ceb6ed162721e284582f499e7e1201 /src/testdir/shared.vim
parente4b407f536ba8bd007152649a347a95320d80fce (diff)
patch 8.1.1624: when testing in the GUI may try to run gvim in a terminalv8.1.1624
Problem: When testing in the GUI may try to run gvim in a terminal. Solution: Add the -v argument. (Yee Cheng Chin, closes #4605) Don't skip tests that work now.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r--src/testdir/shared.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index 53b7314673..e1bb8184d7 100644
--- a/src/testdir/shared.vim
+++ b/src/testdir/shared.vim
@@ -284,6 +284,13 @@ func GetVimCommandClean()
return cmd
endfunc
+" Get the command to run Vim, with --clean, and force to run in terminal so it
+" won't start a new GUI.
+func GetVimCommandCleanTerm()
+ " Add -v to have gvim run in the terminal (if possible)
+ return GetVimCommandClean() .. ' -v '
+endfunc
+
" Run Vim, using the "vimcmd" file and "-u NORC".
" "before" is a list of Vim commands to be executed before loading plugins.
" "after" is a list of Vim commands to be executed after loading plugins.