diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-08 07:29:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-08 07:29:10 +0100 |
commit | 5010ddc28fdced941925563bbc55f9219dfa4267 (patch) | |
tree | 6393065da7a6176db5d305563c9bd919ba6dfc62 /autoload | |
parent | 16cfedf04a46a3d498dfd4f7293c555562d0776e (diff) | |
download | ale-5010ddc28fdced941925563bbc55f9219dfa4267.zip |
Fix #833 - Do not open windows on save when the option is off
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/list.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/list.vim b/autoload/ale/list.vim index f7c8ddd6..ae13e10a 100644 --- a/autoload/ale/list.vim +++ b/autoload/ale/list.vim @@ -18,7 +18,7 @@ function! s:ShouldOpen(buffer) abort let l:saved = getbufvar(a:buffer, 'ale_save_event_fired', 0) return (type(l:val) == type(1) && l:val == 1) - \ || (l:val ==# 'on_save' && l:saved) + \ || (type(l:val) == type('') && l:val ==# 'on_save' && l:saved) endfunction function! ale#list#SetLists(buffer, loclist) abort |