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, tab_index,
find_matches(entries, tab_needle))) find_matches(entries, tab_needle)))
else: else:
print_local( print_local(first(chain(
first( imap(attrgetter('path'), find_matches(entries, needles)),
chain( # always return a path to calling shell functions
find_matches(entries, needles), ['.'])))
# always return a path to calling shell functions
['.'])))
return 0 return 0

Loading…
Cancel
Save