summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-05-03 22:14:20 +0100
committerw0rp <devw0rp@gmail.com>2018-05-03 22:14:29 +0100
commit7c0219efccee6a5929274b07a594e832fd5d596a (patch)
tree213e7a8857668672cedace161cfc43de501ea849 /autoload
parent6495fac82095184da58b4f23b24adf9bb734f488 (diff)
downloadale-7c0219efccee6a5929274b07a594e832fd5d596a.zip
#1503 Call setline() after `d`, in case there are folds at the end of the file
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim
index 03855ef8..51df1458 100644
--- a/autoload/ale/fix.vim
+++ b/autoload/ale/fix.vim
@@ -28,8 +28,6 @@ function! ale#fix#ApplyQueuedFixes() abort
call remove(g:ale_fix_buffer_data, l:buffer)
if l:data.changes_made
- call setline(1, l:data.output)
-
let l:start_line = len(l:data.output) + 1
let l:end_line = len(l:data.lines_before)
@@ -39,6 +37,8 @@ function! ale#fix#ApplyQueuedFixes() abort
call winrestview(l:save)
endif
+ call setline(1, l:data.output)
+
if l:data.should_save
if empty(&buftype)
noautocmd :w!