diff options
author | w0rp <devw0rp@gmail.com> | 2020-11-21 20:16:32 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-11-21 20:16:32 +0000 |
commit | 2e91f0e689362e33ae3172ddf8153c7a7631cdcf (patch) | |
tree | d5598245b6d0b165d9be6196f4319f6d08ebd789 | |
parent | a139599d3938b2f4fa5c8a97d3280b5f4f859321 (diff) | |
download | ale-2e91f0e689362e33ae3172ddf8153c7a7631cdcf.zip |
Use has('gui_running') instead of has('gui')
-rw-r--r-- | doc/ale.txt | 2 | ||||
-rw-r--r-- | plugin/ale.vim | 2 | ||||
-rw-r--r-- | test/test_lint_on_enter_when_file_changed.vader | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 195e6f13..e00d5f15 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -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 diff --git a/plugin/ale.vim b/plugin/ale.vim index b1abb10a..5b7be116 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -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() diff --git a/test/test_lint_on_enter_when_file_changed.vader b/test/test_lint_on_enter_when_file_changed.vader index 88493005..0d4c4af8 100644 --- a/test/test_lint_on_enter_when_file_changed.vader +++ b/test/test_lint_on_enter_when_file_changed.vader @@ -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 |