Reduce jittering for signs some more.
This commit is contained in:
parent
ab555a6984
commit
1fb34d649b
@ -93,10 +93,12 @@ endfunction
|
|||||||
function! ale#sign#SetSigns(buffer, loclist)
|
function! ale#sign#SetSigns(buffer, loclist)
|
||||||
let signlist = ale#sign#CombineSigns(a:loclist)
|
let signlist = ale#sign#CombineSigns(a:loclist)
|
||||||
|
|
||||||
" Insert a dummy sign if one is missing.
|
if len(signlist) > 0 || g:ale_sign_column_always
|
||||||
execute 'sign place ' . g:ale_sign_dummy_id
|
" Insert a dummy sign if one is missing.
|
||||||
\ . ' line=1 name=ALEDummySign buffer='
|
execute 'sign place ' . g:ale_sign_dummy_id
|
||||||
\ . a:buffer
|
\ . ' line=1 name=ALEDummySign buffer='
|
||||||
|
\ . a:buffer
|
||||||
|
endif
|
||||||
|
|
||||||
" Find the current signs with the markers we use.
|
" Find the current signs with the markers we use.
|
||||||
let current_id_list = ale#sign#FindCurrentSigns(a:buffer)
|
let current_id_list = ale#sign#FindCurrentSigns(a:buffer)
|
||||||
@ -119,7 +121,7 @@ function! ale#sign#SetSigns(buffer, loclist)
|
|||||||
exec sign_line
|
exec sign_line
|
||||||
endfor
|
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
|
execute 'sign unplace ' . g:ale_sign_dummy_id . ' buffer=' . a:buffer
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user