You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
352 B
VimL
13 lines
352 B
VimL
7 years ago
|
" Author: w0rp <devw0rp@gmail.com>
|
||
|
" Description: Generic functions for fixing files with.
|
||
|
|
||
|
function! ale#fixers#generic#RemoveTrailingBlankLines(buffer, lines) abort
|
||
|
let l:end_index = len(a:lines) - 1
|
||
|
|
||
|
while l:end_index > 0 && empty(a:lines[l:end_index])
|
||
|
let l:end_index -= 1
|
||
|
endwhile
|
||
|
|
||
|
return a:lines[:l:end_index]
|
||
|
endfunction
|