Skip to content

Conversation

@audriussagadinas
Copy link
Contributor

@audriussagadinas audriussagadinas commented Jan 1, 2026

Tiny fix for "nothing selected" and "no selections remaining" errors generated during typing being incorrectly persisted to the status line.

If any intermediate state of the regex (while typing) yields no matches, an error is set in the editor status line (but not visible). And successful match does not explicitly clear this error, so it remains there (in the editor status line) even after the user completes a valid regex and confirms the selection. It's probably fine to only add this error after confirm?

An alternative fix would be to explicitly clear this error on a successful match.

Screenshot_2026-01-02_01-34-27

Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I've seen these but when I tried to fix it I couldn't figure out when/why it happens. Yep, we should only be setting these errors on Validate

@the-mikedavis the-mikedavis merged commit 7a7edbd into helix-editor:master Jan 7, 2026
7 checks passed
rcharre pushed a commit to rcharre/helix that referenced this pull request Jan 7, 2026
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.

2 participants