mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
vim-patch:8.1.1831: confusing skipped message
Problem: Confusing skipped message.
Solution: Drop "run" from "run start the GUI".
2514315fc2
Cherry-pick 'CheckCanRunGui' user command from patch 8.1.1826.
This commit is contained in:
@@ -57,3 +57,11 @@ func CheckRunVimInTerminal()
|
|||||||
throw 'Skipped: cannot run Vim in a terminal window'
|
throw 'Skipped: cannot run Vim in a terminal window'
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Command to check that we can run the GUI
|
||||||
|
command CheckCanRunGui call CheckCanRunGui()
|
||||||
|
func CheckCanRunGui()
|
||||||
|
if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
|
||||||
|
throw 'Skipped: cannot start the GUI'
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
@@ -329,7 +329,3 @@ func RunVimPiped(before, after, arguments, pipecmd)
|
|||||||
endif
|
endif
|
||||||
return 1
|
return 1
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func CanRunGui()
|
|
||||||
return has('gui') && ($DISPLAY != "" || has('gui_running'))
|
|
||||||
endfunc
|
|
||||||
|
Reference in New Issue
Block a user