1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
This commit is contained in:
William Ting 2013-12-18 15:52:43 -06:00
parent 9139092847
commit 30b9708654

View File

@ -359,11 +359,10 @@ def main():
elif is_tab_partial_match(needle, TAB_SEPARATOR):
print("tab_partial_match")
else:
result = first(find_matches(entries, needles))
if result:
print(encode_local(surround_quotes(result.path)))
else:
try:
print(encode_local(surround_quotes(
first(find_matches(entries, needles)).path)))
except AttributeError:
# always return something so the calling shell function has an
# argument to `cd` to
print(encode_local('.'))