From e9ad21b679219c89ce5eb4c1300a9ab1d7b5bd07 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 10 Oct 2016 19:56:05 +0100 Subject: Fix cursor bugs. --- autoload/ale/cursor.vim | 7 ------- autoload/ale/engine.vim | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'autoload') diff --git a/autoload/ale/cursor.vim b/autoload/ale/cursor.vim index eaa466b2..71112b1a 100644 --- a/autoload/ale/cursor.vim +++ b/autoload/ale/cursor.vim @@ -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 diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim index 3d7374c6..b9a9ff9d 100644 --- a/autoload/ale/engine.vim +++ b/autoload/ale/engine.vim @@ -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] = [] -- cgit v1.2.3