diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-19 09:53:28 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-20 19:02:36 +0100 |
commit | e6b132c915f11e7ff4962f14bfeba1bd77cd5f9f (patch) | |
tree | 879cd5cf4992b024fe179dc5ee8098777b82f458 /autoload | |
parent | 4214832ae263086d1aa1f565067d00e9ed1b820e (diff) | |
download | ale-e6b132c915f11e7ff4962f14bfeba1bd77cd5f9f.zip |
Fix an off-by-one bug in ALEFix
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index b2ca2575..a674e75c 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -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) |