From e6ba936a0c27a741fae55a8bfff4f3ea1da17396 Mon Sep 17 00:00:00 2001 From: Andrey Popp <8mayday@gmail.com> Date: Sun, 5 May 2019 19:14:40 +0300 Subject: Fix off by one error line highlight w/ nvim api --- autoload/ale/highlight.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') 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]) -- cgit v1.2.3