mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix #833 - Do not open windows on save when the option is off
This commit is contained in:
@@ -197,3 +197,11 @@ Execute(The ale_open_list='on_save' option should work):
|
||||
call ale#list#SetLists(bufnr('%'), g:loclist)
|
||||
" Now the list should have opened.
|
||||
Assert ale#list#IsQuickfixOpen()
|
||||
|
||||
Execute(The window shouldn't open on save when ale_open_list=0):
|
||||
let b:ale_open_list = 0
|
||||
let b:ale_save_event_fired = 1
|
||||
|
||||
call ale#list#SetLists(bufnr('%'), g:loclist)
|
||||
" Now the list should have opened.
|
||||
Assert !ale#list#IsQuickfixOpen()
|
||||
|
||||
Reference in New Issue
Block a user