Use has('gui_running') instead of has('gui')

This commit is contained in:
w0rp 2020-11-21 20:16:32 +00:00
parent a139599d39
commit 2e91f0e689
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
3 changed files with 3 additions and 3 deletions

View File

@ -1806,7 +1806,7 @@ g:ale_pattern_options_enabled *g:ale_pattern_options_enabled*
g:ale_popup_menu_enabled *g:ale_popup_menu_enabled*
Type: |Number|
Default: `has('gui')`
Default: `has('gui_running')`
When this option is set to `1`, ALE will show code actions and rename
capabilities in the right click mouse menu when there's a LSP server or

View File

@ -159,7 +159,7 @@ let g:ale_python_auto_pipenv = get(g:, 'ale_python_auto_pipenv', 0)
let g:ale_go_go111module = get(g:, 'ale_go_go111module', '')
" If 1, enable a popup menu for commands.
let g:ale_popup_menu_enabled = get(g:, 'ale_popup_menu_enabled', has('gui'))
let g:ale_popup_menu_enabled = get(g:, 'ale_popup_menu_enabled', has('gui_running'))
if g:ale_set_balloons is 1 || g:ale_set_balloons is# 'hover'
call ale#balloon#Enable()

View File

@ -35,7 +35,7 @@ After:
Execute(The file changed event function should set b:ale_file_changed):
let g:ale_lint_on_enter = 0
if has('gui')
if has('gui_running')
new
else
e test