Skip to content

fix tab completion selecting wrong directory#731

Open
kevinburkesegment wants to merge 1 commit intowting:masterfrom
kevinburkesegment:fix-tab-completion-check-entries
Open

fix tab completion selecting wrong directory#731
kevinburkesegment wants to merge 1 commit intowting:masterfrom
kevinburkesegment:fix-tab-completion-check-entries

Conversation

@kevinburkesegment
Copy link
Copy Markdown

handle_tab_completion used check_entries=False when generating the tab menu and resolving tab indices, but main() used check_entries=True (the default) when jumping. Non-existent paths in the database were included in the menu numbering but excluded during the jump, causing indices to shift and the wrong directory to be selected.

Use check_entries=True (the default) consistently in handle_tab_completion to match the behavior in main().

Fixes #729

handle_tab_completion used check_entries=False when generating the tab
menu and resolving tab indices, but main() used check_entries=True
(the default) when jumping. Non-existent paths in the database were
included in the menu numbering but excluded during the jump, causing
indices to shift and the wrong directory to be selected.

Use check_entries=True (the default) consistently in
handle_tab_completion to match the behavior in main().

Fixes wting#729

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab completion selects wrong directory when database contains non-existent paths

1 participant