mirror of https://github.com/dense-analysis/ale
Fix bugs with directory listings and signs when switching tabs.
This commit is contained in:
parent
faf51d7a22
commit
33b5e30760
|
@ -53,6 +53,10 @@ function! ale#cursor#TruncatedEcho(message)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#cursor#EchoCursorWarning()
|
function! ale#cursor#EchoCursorWarning()
|
||||||
|
if !exists('b:ale_loclist')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let pos = getcurpos()
|
let pos = getcurpos()
|
||||||
|
|
||||||
let index = s:BinarySearch(b:ale_loclist, pos[1], pos[2])
|
let index = s:BinarySearch(b:ale_loclist, pos[1], pos[2])
|
||||||
|
|
|
@ -26,7 +26,9 @@ sign define ALEWarningSign text=-- texthl=ALEWarningSign
|
||||||
|
|
||||||
" This function will set the signs which show up on the left.
|
" This function will set the signs which show up on the left.
|
||||||
function! ale#sign#SetSigns(loclist)
|
function! ale#sign#SetSigns(loclist)
|
||||||
sign unplace *
|
let buffer = bufnr('%')
|
||||||
|
|
||||||
|
exec 'sign unplace * buffer=' . buffer
|
||||||
|
|
||||||
for i in range(0, len(a:loclist) - 1)
|
for i in range(0, len(a:loclist) - 1)
|
||||||
let obj = a:loclist[i]
|
let obj = a:loclist[i]
|
||||||
|
|
Loading…
Reference in New Issue