mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
f7c14e9964dd05611289aec6370b0eb5eb07b5cd
This commit redefines incrementing a combinedPos to either move a single rune forward, *or* transition from EOL->BOL, *or* both. This allows traversal of lines without a trailing newline character to reach the position after the final glyph of content. Additionally, this commit updates positionGreaterOrEqual to explicitly handle hard newlines via special-case logic, allowing lines without a hard newline to avoid the newline-based short-circuit logic that would prevent them from iteratively reaching the combinedPos following the final glyph on the line. Fixes: https://todo.sr.ht/~eliasnaur/gio/400 Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
Gio - https://gioui.org
Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental).
Installation, examples, documentation
Go to gioui.org.
Issues
File bugs and TODOs through the issue tracker or send an email to ~eliasnaur/gio@todo.sr.ht. For general discussion, use the mailing list: ~eliasnaur/gio@lists.sr.ht.
Contributing
Post discussion to the mailing list and patches to gio-patches. No Sourcehut account is required and you can post without being subscribed.
See the contribution guide for more details.
An official GitHub mirror is available.
Description
Languages
Go
89.6%
C
7%
Java
1.7%
Objective-C
1.6%