mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-10 21:42:31 +08:00
Fix an off-by-one bug in ALEFix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user