Use the command line to filter ALEFix's command line completion.

This commit is contained in:
Aliou Diallo committed 2018-05-10 16:15:08 +02:00
1 parent 726a768464
commit 199fcd48ac
2 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -327,7 +327,7 @@ endfunction
" Function that returns autocomplete candidates for ALEFix command
function! ale#fix#registry#CompleteFixers(ArgLead, CmdLine, CursorPos) abort
return ale#fix#registry#GetApplicableFixers(&filetype)
return filter(ale#fix#registry#GetApplicableFixers(&filetype), 'v:val =~? a:ArgLead')
endfunction
" Suggest functions to use from the registry.