#1503 Call setline() after d
, in case there are folds at the end of the file
This commit is contained in:
parent
6495fac820
commit
7c0219efcc
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user