1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

add list assertion for needles

This commit is contained in:
William Ting 2014-02-20 19:59:22 -06:00
parent 681068a2bc
commit 5ba2774ff3

View File

@ -162,6 +162,7 @@ def detect_smartcase(needles):
def find_matches(entries, needles, check_entries=True):
"""Return an iterator to matching entries."""
assert isinstance(needles, list), "Needles must be a list."
ignore_case = detect_smartcase(needles)
try: