Fix an off-by-one bug in ALEFix

This commit is contained in:
w0rp
2017-05-19 09:53:28 +01:00
parent 4214832ae2
commit e6b132c915
2 changed files with 13 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ function! ale#fix#ApplyQueuedFixes() abort
let l:start_line = len(l:data.output) + 1
let l:end_line = len(l:lines)
if l:end_line > l:start_line
if l:end_line >= l:start_line
let l:save = winsaveview()
silent execute l:start_line . ',' . l:end_line . 'd'
call winrestview(l:save)