mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-04 19:28:52 +08:00
Sometimes end_lnum and end_col are not present (#4062)
This commit is contained in:
1 parent
82a3e444b2
commit
47470eddc2
1 file changed
+2
-2
@@ -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)
|
||||
\ },
|
||||
\ },
|
||||
\ },
|
||||
|
||||
Reference in new issue
Block a user