Skip to content

Show the caret at column 0 - #9

Merged
softov merged 1 commit into
mainfrom
fix/caret-at-column-zero
Sep 1, 2026
Merged

Show the caret at column 0#9
softov merged 1 commit into
mainfrom
fix/caret-at-column-zero

Conversation

@softov

@softov softov commented Sep 1, 2026

Copy link
Copy Markdown
Owner

An empty field publishes a caret at column 0, and cursorPosition guarded with !cursor — so no cursor was published until the first character was typed. Every empty input in every TextUI app was affected; the only thing marking the focused control was its border colour.

Found from a form in another project where tabbing between empty fields showed nothing.

true still means "here, at offset 0", so the guard rejects only undefined, null and false.

Tests: 2098 passing, lint and typecheck clean. The two column-0 cases in the new test fail without the fix.

An empty field publishes a caret at column 0, and `!cursor` read that as none.
@softov
softov merged commit 1b11dff into main Sep 1, 2026
1 check passed
@softov
softov deleted the fix/caret-at-column-zero branch September 1, 2026 02:55
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