1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Fix inconsisent file indexing in find_matches

When user applies tab completion and gets the list of possible paths to jump to, those paths contains the deleted/invalid ones. 
However, in the next stage, when the user selects an path index to jump to, autojump filters out the invalid paths and causes inconsistent indexing.

This PR applies a simple fix to keep the invalid paths during the index-based jump. This way, user will go to the exact path s/he sees in the terminal.
This commit is contained in:
Ye 2018-11-19 13:02:26 -08:00 committed by GitHub
parent 06e082c918
commit c8125bb531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,7 @@ def main(args): # noqa
print_local( print_local(
get_ith_path( get_ith_path(
tab_index, tab_index,
find_matches(entries, [tab_needle]), find_matches(entries, [tab_needle], check_entries=False),
), ),
) )
else: else: