Fix cursor bugs.

This commit is contained in:
w0rp 2016-10-10 19:56:05 +01:00
parent 7f0ce89d2b
commit e9ad21b679
3 changed files with 11 additions and 7 deletions

View File

@ -110,10 +110,3 @@ function! ale#cursor#EchoCursorWarningWithDelay() abort
let s:cursor_timer = timer_start(10, function('ale#cursor#EchoCursorWarning'))
endfunction
if g:ale_has_required_features && g:ale_echo_cursor
augroup ALECursorGroup
autocmd!
autocmd CursorMoved,CursorHold * call ale#cursor#EchoCursorWarningWithDelay()
augroup END
endif

View File

@ -83,6 +83,10 @@ function! s:HandleExit(job) abort
" Make some adjustments to the loclists to fix common problems.
call s:FixLocList(buffer, linter_loclist)
for item in linter_loclist
let item.linter_name = linter.name
endfor
if g:ale_buffer_should_reset_map[buffer]
let g:ale_buffer_should_reset_map[buffer] = 0
let g:ale_buffer_loclist_map[buffer] = []

View File

@ -105,6 +105,13 @@ let g:ale_buffer_loclist_map = {}
let g:ale_buffer_should_reset_map = {}
let g:ale_buffer_sign_dummy_map = {}
if g:ale_echo_cursor
augroup ALECursorGroup
autocmd!
autocmd CursorMoved,CursorHold * call ale#cursor#EchoCursorWarningWithDelay()
augroup END
endif
" Backwards compatibility
function! ALELint(delay)
call ale#Queue(a:delay)