Fixes missing path getter introduced in bc91905a.

Closes #270.
pull/272/head
William Ting 10 years ago
parent bc91905a29
commit 6360876933

@ -399,12 +399,10 @@ def main(args): # noqa
tab_index,
find_matches(entries, tab_needle)))
else:
print_local(
first(
chain(
find_matches(entries, needles),
# always return a path to calling shell functions
['.'])))
print_local(first(chain(
imap(attrgetter('path'), find_matches(entries, needles)),
# always return a path to calling shell functions
['.'])))
return 0

Loading…
Cancel
Save