Simplify some comparisons
This commit is contained in:
parent
a535d07f28
commit
16772298ab
@ -17,8 +17,7 @@ function! s:ShouldOpen(buffer) abort
|
|||||||
let l:val = ale#Var(a:buffer, 'open_list')
|
let l:val = ale#Var(a:buffer, 'open_list')
|
||||||
let l:saved = getbufvar(a:buffer, 'ale_save_event_fired', 0)
|
let l:saved = getbufvar(a:buffer, 'ale_save_event_fired', 0)
|
||||||
|
|
||||||
return (type(l:val) == type(1) && l:val == 1)
|
return l:val is 1 || (l:val is# 'on_save' && l:saved)
|
||||||
\ || (type(l:val) == type('') && l:val is# 'on_save' && l:saved)
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#list#SetLists(buffer, loclist) abort
|
function! ale#list#SetLists(buffer, loclist) abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user