You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-app option to show composition only in the candidate panel, without calling setMarkedText (works around a Terminal.app 2.15 crash on macOS 27) #1186
On macOS 27.0.1, Terminal.app 2.15 (488) crashes or drops its window when an input method keeps marked text in the view while the pty keeps producing output (e.g. tmux with a status line / clock / several panes). The fault is in Terminal (-[TTView setMarkedText:…] → -[TTLogicalScreen displayPositionForUnicharOffset:] → NSRangeException; reported to Apple), not in Squirrel — but Squirrel is the only side a user can change today.
Squirrel currently always keeps marked text in the client:
inline_preedit: true → the composition string is the marked text;
no_inline: true → Squirrel still sets a placeholder marked text (a full-width space, the iTerm2 workaround in SquirrelInputController), so Terminal still re-anchors a marked range on every output batch.
Either way Terminal walks the broken path. We measured 17 NSRangeException events in 10 hours and 6 hard crashes in 5 days on one machine, every one of them within the same second as a Squirrel "Setting marked text" IMK log line.
Request
A per-app option (in app_options), e.g. no_marked_text: true, meaning: never call setMarkedText: for this client; show the raw composition only in the candidate panel (preedit line), and send text only via insertText:. For Terminal that completely avoids the Apple bug, and the UI loss is small (no inline preedit, which Terminal users with no_inline: true already accept).
Suggested semantics:
no_marked_text: true implies no_inline: true (panel shows the preedit).
No placeholder marked text is set; cursor position for the panel is taken from the client's attributesForCharacterIndex: / firstRectForCharacterRange: of the current insertion point, as today.
Default false, so nothing changes for existing users.
Activity