Fix a bug where echoing in modes like visual select caused some errors.
This commit is contained in:
parent
8433dbcea9
commit
34241edcdb
@ -63,6 +63,11 @@ function! ale#cursor#TruncatedEcho(message)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#cursor#EchoCursorWarning(...)
|
function! ale#cursor#EchoCursorWarning(...)
|
||||||
|
" Only echo the warnings in normal mode, otherwise we will get problems.
|
||||||
|
if mode() !=# 'n'
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let buffer = bufnr('%')
|
let buffer = bufnr('%')
|
||||||
|
|
||||||
if !has_key(g:ale_buffer_loclist_map, buffer)
|
if !has_key(g:ale_buffer_loclist_map, buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user