Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stb_textedit: set cursor to start of line when pressing up in the first line #1693

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blackedout01
Copy link

Previously, when pressing the up key while the cursor is positioned in the first line, nothing happens because there is a break when no previous line exists, causing the event handling to exit.

Many texteditors move the cursor to the start of the line when pressing up in this case, similar to how it's already implemented when pressing down on the last line of the text, where the cursor gets set to the end.

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