summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorAndrey Popp <8mayday@gmail.com>2019-05-05 19:14:40 +0300
committerAndrey Popp <8mayday@gmail.com>2019-05-05 19:14:40 +0300
commite6ba936a0c27a741fae55a8bfff4f3ea1da17396 (patch)
tree5f4828159efe5e875633415adb1910da93b2e68f /autoload
parent7f0954b89ef7c43e5fb7b6490665e9814c8205b2 (diff)
downloadale-e6ba936a0c27a741fae55a8bfff4f3ea1da17396.zip
Fix off by one error line highlight w/ nvim api
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/highlight.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/highlight.vim b/autoload/ale/highlight.vim
index 3e09f26d..172f9d54 100644
--- a/autoload/ale/highlight.vim
+++ b/autoload/ale/highlight.vim
@@ -110,7 +110,7 @@ function! s:highlight_line(bufnr, lnum, group) abort
let l:highlight_id = s:ale_nvim_highlight_id(a:bufnr)
call ale#highlight#nvim_buf_add_highlight(
\ a:bufnr, l:highlight_id, a:group,
- \ a:lnum, 0, -1
+ \ a:lnum - 1, 0, -1
\)
else
call matchaddpos(a:group, [a:lnum])