Problem: Terminal test tries to start GUI when it's not possible.
Solution: Check if the GUI can run. (James McCoy, closes #1971)
endif
return 1
endfunc
+
+func CanRunGui()
+ return has('gui') && ($DISPLAY != "" || has('gui_running'))
+endfunc
" Tests specifically for the GUI
-if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
+source shared.vim
+if !CanRunGui()
finish
endif
" Tests specifically for the GUI features/options that need to be set up at
" startup to take effect at runtime.
-if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
+source shared.vim
+if !CanRunGui()
finish
endif
" must be last, we can't go back from GUI to terminal
func Test_zz_terminal_in_gui()
- if !has('gui')
+ if !CanRunGui()
return
endif
gui -f
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 933,
/**/
932,
/**/