Mercurial > vim
comparison src/testdir/test_gui.vim @ 12106:d2c20ec4b95a v8.0.0933
patch 8.0.0933: terminal test tries to start GUI when it's not possible
commit https://github.com/vim/vim/commit/9f0139a2a869b0804e5b91a65e3d5952c9091879
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 13 20:26:20 2017 +0200
patch 8.0.0933: terminal test tries to start GUI when it's not possible
Problem: Terminal test tries to start GUI when it's not possible.
Solution: Check if the GUI can run. (James McCoy, closes https://github.com/vim/vim/issues/1971)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Aug 2017 20:30:05 +0200 |
parents | 1c4ebbae41d2 |
children | 33a2277b8d4d |
comparison
equal
deleted
inserted
replaced
12105:5fb450ed333a | 12106:d2c20ec4b95a |
---|---|
1 " Tests specifically for the GUI | 1 " Tests specifically for the GUI |
2 | 2 |
3 if !has('gui') || ($DISPLAY == "" && !has('gui_running')) | 3 source shared.vim |
4 if !CanRunGui() | |
4 finish | 5 finish |
5 endif | 6 endif |
6 | 7 |
7 source setup_gui.vim | 8 source setup_gui.vim |
8 | 9 |