mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
Skip current_dir in find_matches for fuzzy=False, too
This commit is contained in:
@@ -356,6 +356,9 @@ def find_matches(db, patterns, max_matches=1, ignore_case=False, fuzzy=False):
|
|||||||
|
|
||||||
# collisions: ignore lower weight paths
|
# collisions: ignore lower weight paths
|
||||||
if end not in end_dirs and (os.path.exists(d[0]) or TESTING):
|
if end not in end_dirs and (os.path.exists(d[0]) or TESTING):
|
||||||
|
# avoid jumping to current directory
|
||||||
|
if current_dir == os.path.realpath(d[0]):
|
||||||
|
continue
|
||||||
end_dirs[end] = d[0]
|
end_dirs[end] = d[0]
|
||||||
|
|
||||||
# find the first match (heighest weight)
|
# find the first match (heighest weight)
|
||||||
|
|||||||
Reference in New Issue
Block a user