diff options
author | w0rp <devw0rp@gmail.com> | 2019-02-22 20:48:06 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-02-22 20:48:06 +0000 |
commit | 89e54918623f6ed42beed5c7c33bee796676449c (patch) | |
tree | 235de744c804c704e06df97fac2160aa2ae9e9ba /autoload | |
parent | 883978ece93bd19250d6d7e8b9659b48f23522e2 (diff) | |
download | ale-89e54918623f6ed42beed5c7c33bee796676449c.zip |
Revert "#2132 Change (buffer, lines) fixer functions to (buffer, done, lines)"
This reverts commit f1ed654ca5318de5a24b37d882e55e04e4e566c8.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix.vim | 4 | ||||
-rw-r--r-- | autoload/ale/fixers/generic.vim | 4 | ||||
-rw-r--r-- | autoload/ale/fixers/generic_python.vim | 4 | ||||
-rw-r--r-- | autoload/ale/fixers/help.vim | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 48874a8a..a14638c7 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -202,10 +202,10 @@ function! s:RunFixer(options) abort \ ? call(l:Function, [l:buffer, a:options.output]) \ : call(l:Function, [l:buffer, a:options.output, copy(l:input)]) else - " Chained commands accept (buffer, [done, input]) + " Chained commands accept (buffer, [input]) let l:result = ale#util#FunctionArgCount(l:Function) == 1 \ ? call(l:Function, [l:buffer]) - \ : call(l:Function, [l:buffer, v:null, copy(l:input)]) + \ : call(l:Function, [l:buffer, copy(l:input)]) endif if type(l:result) is v:t_number && l:result == 0 diff --git a/autoload/ale/fixers/generic.vim b/autoload/ale/fixers/generic.vim index 1d88553e..cb8865b4 100644 --- a/autoload/ale/fixers/generic.vim +++ b/autoload/ale/fixers/generic.vim @@ -1,7 +1,7 @@ " Author: w0rp <devw0rp@gmail.com> " Description: Generic functions for fixing files with. -function! ale#fixers#generic#RemoveTrailingBlankLines(buffer, done, lines) abort +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]) @@ -12,7 +12,7 @@ function! ale#fixers#generic#RemoveTrailingBlankLines(buffer, done, lines) abort endfunction " Remove all whitespaces at the end of lines -function! ale#fixers#generic#TrimWhitespace(buffer, done, lines) abort +function! ale#fixers#generic#TrimWhitespace(buffer, lines) abort let l:index = 0 let l:lines_new = range(len(a:lines)) diff --git a/autoload/ale/fixers/generic_python.vim b/autoload/ale/fixers/generic_python.vim index 9a929b96..d55a23c3 100644 --- a/autoload/ale/fixers/generic_python.vim +++ b/autoload/ale/fixers/generic_python.vim @@ -2,7 +2,7 @@ " Description: Generic fixer functions for Python. " Add blank lines before control statements. -function! ale#fixers#generic_python#AddLinesBeforeControlStatements(buffer, done, lines) abort +function! ale#fixers#generic_python#AddLinesBeforeControlStatements(buffer, lines) abort let l:new_lines = [] let l:last_indent_size = 0 let l:last_line_is_blank = 0 @@ -41,7 +41,7 @@ endfunction " This function breaks up long lines so that autopep8 or other tools can " fix the badly-indented code which is produced as a result. -function! ale#fixers#generic_python#BreakUpLongLines(buffer, done, lines) abort +function! ale#fixers#generic_python#BreakUpLongLines(buffer, lines) abort " Default to a maximum line length of 79 let l:max_line_length = 79 let l:conf = ale#path#FindNearestFile(a:buffer, 'setup.cfg') diff --git a/autoload/ale/fixers/help.vim b/autoload/ale/fixers/help.vim index 9fb0717b..b20740fe 100644 --- a/autoload/ale/fixers/help.vim +++ b/autoload/ale/fixers/help.vim @@ -1,7 +1,7 @@ " Author: w0rp <devw0rp@gmail.com> " Description: Generic fixer functions for Vim help documents. -function! ale#fixers#help#AlignTags(buffer, done, lines) abort +function! ale#fixers#help#AlignTags(buffer, lines) abort let l:new_lines = [] for l:line in a:lines |