Fix #506 - Don't set signs for buffers which don't exist

This commit is contained in:
w0rp committed 2017-04-26 23:32:20 +01:00
1 parent ce2f777e33
commit b25dbd6ea5
2 files changed
+9

No files matched your search

+6
View File
@@ -169,6 +169,12 @@ endfunction
" This function will set the signs which show up on the left.
function! ale#sign#SetSigns(buffer, loclist) abort
if !bufexists(str2nr(a:buffer))
" Stop immediately when attempting to set signs for a buffer which
" does not exist.
return
endif
" Find the current markers
let l:current_sign_list = ale#sign#FindCurrentSigns(a:buffer)