diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-05 10:25:16 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-05 10:25:16 +0100 |
commit | 1fb34d649b61908e8a9e340454c658f96f19ef60 (patch) | |
tree | 7e26b6168639db215a9278d113e3b085d2908b99 | |
parent | ab555a6984e9979168c5c37080f6595ee4048ec9 (diff) | |
download | ale-1fb34d649b61908e8a9e340454c658f96f19ef60.zip |
Reduce jittering for signs some more.
-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 |