diff --git a/bin/autojump b/bin/autojump index 3b0e076..8a03167 100755 --- a/bin/autojump +++ b/bin/autojump @@ -212,7 +212,8 @@ def find_matches(config, needles, count=1): exact_matches = match_regex(needles, data, ignore_case) exists = lambda entry: os.path.exists(entry.path) - return first(ifilter(exists, exact_matches)).path + result = first(ifilter(exists, exact_matches)) + return result.path if result else u'' def match_end(needle, haystack, ignore_case=False):