diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale/sign.vim | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim index 7d7802d0..08235f6b 100644 --- a/plugin/ale/sign.vim +++ b/plugin/ale/sign.vim @@ -93,10 +93,12 @@ endfunction function! ale#sign#SetSigns(buffer, loclist) let signlist = ale#sign#CombineSigns(a:loclist) - " Insert a dummy sign if one is missing. - execute 'sign place ' . g:ale_sign_dummy_id - \ . ' line=1 name=ALEDummySign buffer=' - \ . a:buffer + if len(signlist) > 0 || g:ale_sign_column_always + " Insert a dummy sign if one is missing. + execute 'sign place ' . g:ale_sign_dummy_id + \ . ' line=1 name=ALEDummySign buffer=' + \ . a:buffer + endif " Find the current signs with the markers we use. let current_id_list = ale#sign#FindCurrentSigns(a:buffer) @@ -119,7 +121,7 @@ function! ale#sign#SetSigns(buffer, loclist) exec sign_line endfor - if !g:ale_sign_column_always + if !g:ale_sign_column_always && len(signlist) > 0 execute 'sign unplace ' . g:ale_sign_dummy_id . ' buffer=' . a:buffer endif endfunction |