Skip to content

fix: handle IndexError in text selection to prevent session crash#597

Open
karanjaxyz wants to merge 1 commit intoOpenHands:mainfrom
karanjaxyz:fix/mouse-selection-crash
Open

fix: handle IndexError in text selection to prevent session crash#597
karanjaxyz wants to merge 1 commit intoOpenHands:mainfrom
karanjaxyz:fix/mouse-selection-crash

Conversation

@karanjaxyz
Copy link

Textual's Selection.extract() crashes with IndexError when screen
coordinates aren't translated to widget-local coordinates during
text selection. This adds a defensive try/except to prevent the
crash and notify the user instead of killing their session.

Root cause filed upstream: Textualize/textual#6428

Related: #601

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