mirror of https://github.com/dense-analysis/ale
Sometimes end_lnum and end_col are not present (#4062)
This commit is contained in:
parent
82a3e444b2
commit
47470eddc2
|
@ -391,8 +391,8 @@ function! s:OnReady(
|
|||
\ 'character': l:nearest_error.col - 1,
|
||||
\ },
|
||||
\ 'end': {
|
||||
\ 'line': l:nearest_error.end_lnum - 1,
|
||||
\ 'character': l:nearest_error.end_col,
|
||||
\ 'line': get(l:nearest_error, 'end_lnum', 1) - 1,
|
||||
\ 'character': get(l:nearest_error, 'end_col', 0)
|
||||
\ },
|
||||
\ },
|
||||
\ },
|
||||
|
|
Loading…
Reference in New Issue