Optimize ale#completion#Filter when prefix is ""

This commit is contained in:
Jerko Steiner committed 2019-01-08 15:10:03 +01:00
1 parent 9bcf8a2336
commit b1b05e6e66
4 files changed
+42 -27

No files matched your search

@@ -105,6 +105,9 @@ Execute(Excluding words from completion results should work with lists of String
AssertEqual
\ ['Deutsch'],
\ ale#completion#Filter(bufnr(''), '', ['describe', 'Deutsch'], '.')
AssertEqual
\ ['Deutsch'],
\ ale#completion#Filter(bufnr(''), '', ['Deutsch'], '')
Execute(Filtering shouldn't modify the original list):
let b:ale_completion_excluded_words = ['it', 'describe']