Skip to content

fix(examples): resolve nil pointer dereference#1663

Merged
aymanbagabas merged 1 commit intocharmbracelet:mainfrom
mattpcaswell:patch-2
Apr 6, 2026
Merged

fix(examples): resolve nil pointer dereference#1663
aymanbagabas merged 1 commit intocharmbracelet:mainfrom
mattpcaswell:patch-2

Conversation

@mattpcaswell
Copy link
Copy Markdown
Contributor

  • I have read CONTRIBUTING.md.
  • I have created a discussion that was approved by a maintainer (for new features).

Fixes a nil pointer dereference panic in this example when you hit "escape", which de-focuses the textarea, so it has no cursor!

Copy link
Copy Markdown
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

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

Thank you @mattpcaswell!

@aymanbagabas aymanbagabas merged commit ee06e98 into charmbracelet:main Apr 6, 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