Skip to content

Preserve graphemes across same-size resizes - #179

Merged
tony merged 2 commits into
masterfrom
fix/86-same-size-resize
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/86-same-size-resize

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #86

What changed, and why:

A resize that preserves the active screen dimensions also preserves the in-progress grapheme. A combining mark can complete that grapheme after the size event, and enabled in-band resize reports still arrive.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #179
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:49
@tony
tony force-pushed the fix/86-same-size-resize branch from f15f7ae to 1510f62 Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:28
why: A duplicate size notification can interrupt a combining sequence.

what:
- Track mutations on the active screen for grapheme invalidation.
- Keep in-band resize events and terminal replies.
- Cover same-size, inactive-screen, and active-screen changes.

Fixes #86
why: A combining mark can arrive after a resize notification that
     repeats the active dimensions.

what:
- Document how the mark still joins its base character.
@tony
tony force-pushed the fix/86-same-size-resize branch from 1510f62 to eb2e730 Compare December 5, 2026 13:29
@tony
tony changed the base branch from master to fix/82-kitty-key-events December 5, 2026 13:29
@tony
tony changed the base branch from fix/82-kitty-key-events to master December 5, 2026 13:30
@tony
tony merged commit a6596d9 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the fix/86-same-size-resize branch December 5, 2026 20:42

This branch was successfully deployed

1 active deployment
docs — eb2e7300 Deployed Dec 5, 2026 by tony via build (3.14) #407
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.

Keep the grapheme anchor across a same-size resize()

1 participant