summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
authorJerko Steiner <jerko.steiner@gmail.com>2019-01-08 15:09:59 +0100
committerJerko Steiner <jerko.steiner@gmail.com>2019-01-08 15:10:03 +0100
commitb1b05e6e66f84e93ebf521444e3d21500a87bcdf (patch)
treecfa2a901c8c0342af9e862715c2eaff9c5a3cc3c /test/completion
parent9bcf8a2336ff6f98e5032d30e17c2671d66946fe (diff)
downloadale-b1b05e6e66f84e93ebf521444e3d21500a87bcdf.zip
Optimize ale#completion#Filter when prefix is ""
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/test_completion_filtering.vader3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/completion/test_completion_filtering.vader b/test/completion/test_completion_filtering.vader
index 1122ab60..c5f14266 100644
--- a/test/completion/test_completion_filtering.vader
+++ b/test/completion/test_completion_filtering.vader
@@ -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']