A simple, high performance text editor.
The bottom-bar 'Wrap: On/Off' toggle flipped State.WordWrap and relabelled itself, but the render path never read the flag: NewTextField hardcoded WordWrap: true and drawWrappedText always shaped at the region width with WrapHeuristically, so lines wrapped in both modes. NewTextField now takes the wordWrap flag, TextField.Draw passes tf.WordWrap to drawWrappedText, and with wrap disabled the shaper gets unlimited width (MaxWidth = maxInt32, as in single-line layout) so over-long lines extend past the region and are clipped instead of wrapping. EditorLayout passes its existing wordWrap parameter through. |
||
|---|---|---|
| .qwen | ||
| cmd/pad | ||
| doc | ||
| internal | ||
| scripts | ||
| .DS_Store | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||