fix: tag autocomplete leaves the cursor at the end of the query #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pr/fix-completion-cursor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix: cursor placement after tag autocomplete.
handleCompletionrebuilds the query viasetPlainText, which resets the cursor to position 0 — so after picking a tag from the completer popup (in/ort t), the caret jumped to the start of the box. Now it's placed at the end (after the trailing space), so typing continues naturally:tag:inbox and ….Same pattern already used for history recall. Regression test added (
test_completion_leaves_cursor_at_end): completingtag:in→tag:inboxwith the cursor at the end. Suite: 126 passed, mypy 0.