diff options
author | Aliou Diallo <code@aliou.me> | 2018-05-08 07:56:19 +0200 |
---|---|---|
committer | Aliou Diallo <code@aliou.me> | 2018-05-10 16:15:08 +0200 |
commit | 199fcd48ac5333c6fab1ac92b802d4f23d17e491 (patch) | |
tree | bc3dd86a1a0daf42476058756ba69bfb151e4314 /autoload | |
parent | 726a768464d3e42869088599cf1bd049f7a751df (diff) | |
download | ale-199fcd48ac5333c6fab1ac92b802d4f23d17e491.zip |
Use the command line to filter ALEFix's command line completion.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix/registry.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim index 7e45e6ad..c00cbdee 100644 --- a/autoload/ale/fix/registry.vim +++ b/autoload/ale/fix/registry.vim @@ -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. |