summaryrefslogtreecommitdiff
path: root/autoload/ale/codefix.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ale/codefix.vim')
-rw-r--r--autoload/ale/codefix.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/codefix.vim b/autoload/ale/codefix.vim
index 853ee4e8..938d9637 100644
--- a/autoload/ale/codefix.vim
+++ b/autoload/ale/codefix.vim
@@ -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)
\ },
\ },
\ },