mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-09 05:24:47 +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:
@@ -38,7 +38,7 @@ function! airline#extensions#coc#get(type) abort
|
|||||||
if empty(cnt)
|
if empty(cnt)
|
||||||
return ''
|
return ''
|
||||||
else
|
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
|
return (is_err ? s:error_symbol : s:warning_symbol).cnt.lnum
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user