mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 15:23:55 +08:00
Correct line number for coc.nvim warnings.
- The line number index is 0 for errors, 1 for warnings.
This commit is contained in:
parent
a8b3c254d0
commit
fdda58861b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user