Merge pull request #2394 from adriantrunzo/master

Correct line number for coc.nvim warnings.
This commit is contained in:
Christian Brabandt 2021-06-04 08:45:17 +02:00 committed by GitHub
commit 82b1b2e876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ function! airline#extensions#coc#get(type) abort
if empty(cnt)
return ''
else
let lnum = printf('(L%d)', (info.lnums)[0])
let lnum = printf('(L%d)', (info.lnums)[is_err ? 0 : 1])
return (is_err ? s:error_symbol : s:warning_symbol).cnt.lnum
endif
endfunction