redpen: fix start column

This commit is contained in:
rhysd 2017-11-17 15:21:54 +09:00
parent 44cd07d39c
commit ca345ffb62
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)',