mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-02 21:39:01 +08:00
Fix #2330 - Do not use getcurpos() to avoid changing curswant
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
" be returned.
|
||||
function! ale#loclist_jumping#FindNearest(direction, wrap, ...) abort
|
||||
let l:buffer = bufnr('')
|
||||
let l:pos = getcurpos()
|
||||
let l:pos = getpos('.')
|
||||
let l:info = get(g:ale_buffer_info, bufnr('%'), {'loclist': []})
|
||||
" Copy the list and filter to only the items in this buffer.
|
||||
let l:loclist = filter(copy(l:info.loclist), 'v:val.bufnr == l:buffer')
|
||||
|
||||
Reference in New Issue
Block a user