Skip to content

fix(expander): keep a shortcut unexpanded after backspace undoes it (#1000) - #1008

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/expander-revert
Nov 30, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/expander-revert

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

With "Backspace undoes expansion", the next space or punctuation expanded the restored shortcut again.

  • The block on re-expanding now stays with the restored shortcut until part of it is deleted or the cursor moves. Typing the shortcut again still expands it.
  • Expand-on-space mode: composing is now ended before the undo.

Tested: InputLogicTest and the TextExpander test classes pass, with new tests for both cases. The fix was also checked on a phone.

https://claude.ai/code/session_017YwBxUSdzcnhaipSjVndp8

…1000)

Any key except backspace cleared the memory of the undone shortcut before
the expansion check ran, so the next space expanded it again. The block now
stays with that occurrence until part of it is deleted or the cursor moves.

Also end composing before undoing an expansion: deleting the space after it
resumes composing the last word, which left the keyboard out of sync.
@LeanBitLab
LeanBitLab merged commit c411230 into main Nov 30, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/expander-revert branch November 30, 2026 04:02
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.

1 participant