From ca345ffb624ba399458eb7b2954ce2efbc381248 Mon Sep 17 00:00:00 2001 From: rhysd Date: Fri, 17 Nov 2017 15:21:54 +0900 Subject: [PATCH] redpen: fix start column --- autoload/ale/handlers/redpen.vim | 2 +- test/handler/test_redpen_handler.vader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ale/handlers/redpen.vim b/autoload/ale/handlers/redpen.vim index 89ad5fc..35ff8c1 100644 --- a/autoload/ale/handlers/redpen.vim +++ b/autoload/ale/handlers/redpen.vim @@ -13,7 +13,7 @@ function! ale#handlers#redpen#HandleRedpenOutput(buffer, lines) abort \} if has_key(l:err, 'startPosition') let l:item.lnum = l:err.startPosition.lineNum - let l:item.col = l:err.startPosition.offset + let l:item.col = l:err.startPosition.offset + 1 if has_key(l:err, 'endPosition') let l:item.end_lnum = l:err.endPosition.lineNum let l:item.end_col = l:err.endPosition.offset diff --git a/test/handler/test_redpen_handler.vader b/test/handler/test_redpen_handler.vader index 32ff0ba..4627614 100644 --- a/test/handler/test_redpen_handler.vader +++ b/test/handler/test_redpen_handler.vader @@ -9,7 +9,7 @@ Execute(redpen handler should handle errors output): \ [ \ { \ 'lnum': 1, - \ 'col': 9, + \ 'col': 10, \ 'end_lnum': 1, \ 'end_col': 15, \ 'text': 'Found possibly misspelled word "plugin". (Spelling)',