Fix needle-must-be-a-list crash.

pull/276/head
Stephen Blott 10 years ago
parent 6360876933
commit debf6e6086

@ -397,7 +397,7 @@ def main(args): # noqa
print_local(
get_ith_path(
tab_index,
find_matches(entries, tab_needle)))
find_matches(entries, [tab_needle])))
else:
print_local(first(chain(
imap(attrgetter('path'), find_matches(entries, needles)),

Loading…
Cancel
Save