Fix #2330 - Do not use getcurpos() to avoid changing curswant

This commit is contained in:
w0rp
2019-03-07 12:28:36 +00:00
parent 6aef52f026
commit 5505f2323d
11 changed files with 19 additions and 19 deletions

View File

@@ -47,7 +47,6 @@ function! ale#virtualtext#ShowMessage(message, hl_group) abort
return
endif
let l:cursor_position = getcurpos()
let l:line = line('.')
let l:buffer = bufnr('')
let l:prefix = get(g:, 'ale_virtualtext_prefix', '> ')
@@ -117,7 +116,7 @@ function! ale#virtualtext#ShowCursorWarningWithDelay() abort
call s:StopCursorTimer()
let l:pos = getcurpos()[0:2]
let l:pos = getpos('.')[0:2]
" Check the current buffer, line, and column number against the last
" recorded position. If the position has actually changed, *then*