Skip to content

Commit da078b1

Browse files
thenewvuthomasfaingnaert
authored andcommitted
Fix diagnostic highlighting on incorrect texts (#504)
1 parent 34397f0 commit da078b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/highlights.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function! s:place_highlights(server_name, path, diagnostics) abort
103103

104104
let l:name = get(s:severity_sign_names_mapping, l:item['severity'], 'LspError')
105105
let l:hl_name = l:name . 'Highlight'
106-
call nvim_buf_add_highlight(l:bufnr, l:ns, l:hl_name, l:line, l:start_col, l:end_col)
106+
call nvim_buf_add_highlight(l:bufnr, l:ns, l:hl_name, l:line - 1, l:start_col - 1, l:end_col - 1)
107107
endfor
108108
endif
109109
endfunction

0 commit comments

Comments
 (0)