-
Notifications
You must be signed in to change notification settings - Fork 6.2k
feat: add text cleared with ctrl+c to the history so it can be recovered with up arrow #5470
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
c12b093 to
bd2345d
Compare
| if let Some(text) = replace_text { | ||
| self.textarea.set_text(&text); | ||
| self.textarea.set_cursor(0); | ||
| self.set_text_content(text); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this was intentional right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but also not required, not sure if there was a reason why we were doing that manually and not doing the rest of things that set_text_content does
codex-ctrl-c-up-arrow.mov