A simple, high performance text editor.
Go to file
Greg Pomerantz 51344b9a5b IME: fix post-commit caret for replacement commits; trace IME pushes
ApplyIMECommitToModel computed the caret pushed to the IME right
after a commit as Range.End + len(text). That is correct for a plain
insertion (Start == End) but wrong for a replacement — the case a
swipe/autocorrect over a selection produces: the inserted text starts
at Range.Start, so the caret is Range.Start + len(text). A 4-rune
replacement (the 'samet' autocorrect on the phone) pushed the caret
4 runes past the inserted text, desynchronizing the IME's caret from
ours at exactly the moment its local model was being updated; the
persistent 4-rune drift that followed (every commit 4 runes ahead,
then the empty-fix-up loop) matches this.

The logic side (applyIMECommitBytes) already computed the correct
caret; this aligns the renderer's immediate push with it.

Also log every IME push (snippet restarts, selection updates, commit
pushes) from the renderer: the phone incident's logcat rotated before
it could be re-analyzed, so the next occurrence must be
reconstructable from what we actually pushed to the IME.
2026-09-13 18:58:27 -04:00
.qwen Add ShapeText/DrawShapedText: single shaper call, zero-call drawing 2026-05-12 12:06:28 -04:00
cmd/pad IME: fix random mid-word capitalization (stable snippet window + commit in-flight handling) 2026-09-13 17:00:49 -04:00
doc Restore the browser page on relaunch, not the last edited file 2026-09-03 12:11:44 -04:00
internal IME: fix post-commit caret for replacement commits; trace IME pushes 2026-09-13 18:58:27 -04:00
scripts IME: map commits against the whole buffer; drop the renderer-side model 2026-09-13 11:57:38 -04:00
tools/touchinject Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
.DS_Store Add drawPng function to Renderer for PNG icon rendering 2026-05-10 06:26:29 -04:00
.gitignore Pinch-to-font-size (continuous, content-point pinned) + IME-open scroll fix 2026-08-23 09:00:51 -04:00
go.mod IME: map commits against the whole buffer; drop the renderer-side model 2026-09-13 11:57:38 -04:00
go.sum Bump gioui.org v0.10.0 -> v0.10.2 2026-09-02 19:36:08 -04:00