Mercurial > vim
comparison src/testdir/term_util.vim @ 17249:3e2e998ce0db v8.1.1624
patch 8.1.1624: when testing in the GUI may try to run gvim in a terminal
commit https://github.com/vim/vim/commit/0d702028feb859e6bde9a0c943d398d86294beb7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 4 14:20:41 2019 +0200
patch 8.1.1624: when testing in the GUI may try to run gvim in a terminal
Problem: When testing in the GUI may try to run gvim in a terminal.
Solution: Add the -v argument. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/4605) Don't skip
tests that work now.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Jul 2019 14:30:05 +0200 |
parents | 7927cf327396 |
children | 4ac8161e92e0 |
comparison
equal
deleted
inserted
replaced
17248:6ad25d3ae8ce | 17249:3e2e998ce0db |
---|---|
57 " Make the window 20 lines high and 75 columns, unless told otherwise. | 57 " Make the window 20 lines high and 75 columns, unless told otherwise. |
58 let rows = get(a:options, 'rows', 20) | 58 let rows = get(a:options, 'rows', 20) |
59 let cols = get(a:options, 'cols', 75) | 59 let cols = get(a:options, 'cols', 75) |
60 let statusoff = get(a:options, 'statusoff', 1) | 60 let statusoff = get(a:options, 'statusoff', 1) |
61 | 61 |
62 let cmd = GetVimCommandClean() | 62 let cmd = GetVimCommandCleanTerm() .. a:arguments |
63 | 63 |
64 " Add -v to have gvim run in the terminal (if possible) | |
65 let cmd .= ' -v ' . a:arguments | |
66 let buf = term_start(cmd, { | 64 let buf = term_start(cmd, { |
67 \ 'curwin': 1, | 65 \ 'curwin': 1, |
68 \ 'term_rows': rows, | 66 \ 'term_rows': rows, |
69 \ 'term_cols': cols, | 67 \ 'term_cols': cols, |
70 \ }) | 68 \ }) |