summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-05-26 21:34:29 +0100
committerGitHub <noreply@github.com>2018-05-26 21:34:29 +0100
commit29a9c9a2553911200b5f80d4159e8814e34eb8ab (patch)
tree7fd35b260331749b901ecf27d8a85b21d3b0ac9d /autoload
parent6fce8ddc5ab5228afacc4c77ade1912fd3a7fe93 (diff)
parent199fcd48ac5333c6fab1ac92b802d4f23d17e491 (diff)
downloadale-29a9c9a2553911200b5f80d4159e8814e34eb8ab.zip
Merge pull request #1564 from aliou/ad-alefix-fixer-cmdline-completion
Use the command line to filter ALEFix's command line completion.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix/registry.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index 7b5fdb8e..17532b3b 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -332,7 +332,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.