From 1fb34d649b61908e8a9e340454c658f96f19ef60 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 5 Oct 2016 10:25:16 +0100 Subject: [PATCH] Reduce jittering for signs some more. --- plugin/ale/sign.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugin/ale/sign.vim b/plugin/ale/sign.vim index 7d7802d..08235f6 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