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.
Showing
+1 -1
Please register or sign in to comment