Skip to content

Divider: support surrogate-pair glyphs in char#27

Merged
RtlZeroMemory merged 1 commit intomainfrom
feat/divider-codepoint
Feb 11, 2026
Merged

Divider: support surrogate-pair glyphs in char#27
RtlZeroMemory merged 1 commit intomainfrom
feat/divider-codepoint

Conversation

@RtlZeroMemory
Copy link
Copy Markdown
Owner

Fixes P2 edge correctness: divider custom char used rawChar[0] (UTF-16 code unit), breaking surrogate-pair glyphs.

Changes:

  • Divider rendering now uses the first Unicode codepoint via codePointAt(0) in both advanced and simple renderers.
  • Adds renderer test to ensure a surrogate-pair glyph is preserved in interned strings.

Tests:

  • npm run lint
  • npm run typecheck -- --force
  • npm test

Note: npm run test:e2e is linux-only by design.

Fixes surrogate-pair glyph handling (avoid raw UTF-16 code unit slicing)
@RtlZeroMemory RtlZeroMemory merged commit 44b8356 into main Feb 11, 2026
12 of 14 checks passed
@RtlZeroMemory RtlZeroMemory deleted the feat/divider-codepoint branch February 11, 2026 07:54
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