mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Sometimes end_lnum and end_col are not present (#4062)
This commit is contained in:
@@ -391,8 +391,8 @@ function! s:OnReady(
|
|||||||
\ 'character': l:nearest_error.col - 1,
|
\ 'character': l:nearest_error.col - 1,
|
||||||
\ },
|
\ },
|
||||||
\ 'end': {
|
\ 'end': {
|
||||||
\ 'line': l:nearest_error.end_lnum - 1,
|
\ 'line': get(l:nearest_error, 'end_lnum', 1) - 1,
|
||||||
\ 'character': l:nearest_error.end_col,
|
\ 'character': get(l:nearest_error, 'end_col', 0)
|
||||||
\ },
|
\ },
|
||||||
\ },
|
\ },
|
||||||
\ },
|
\ },
|
||||||
|
|||||||
Reference in New Issue
Block a user