mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-22 21:45:06 +02:00
Merge pull request #2394 from adriantrunzo/master
Correct line number for coc.nvim warnings.
This commit is contained in:
commit
82b1b2e876
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user