forked from github-mirrors/ale
* fix #4276: honor b:ale_enabled for hover at cursor * fix indention
This commit is contained in:
parent
233b681029
commit
7889983f89
|
@ -339,6 +339,10 @@ function! ale#hover#ShowTruncatedMessageAtCursor() abort
|
||||||
let l:buffer = bufnr('')
|
let l:buffer = bufnr('')
|
||||||
let l:pos = getpos('.')[0:2]
|
let l:pos = getpos('.')[0:2]
|
||||||
|
|
||||||
|
if !getbufvar(l:buffer, 'ale_enabled', 1)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
if l:pos != s:last_pos
|
if l:pos != s:last_pos
|
||||||
let s:last_pos = l:pos
|
let s:last_pos = l:pos
|
||||||
let [l:info, l:loc] = ale#util#FindItemAtCursor(l:buffer)
|
let [l:info, l:loc] = ale#util#FindItemAtCursor(l:buffer)
|
||||||
|
|
Loading…
Reference in New Issue