Skip to content

refactor!: graceful handle ReedlineEvent::CtrlC#1051

Open
tisonkun wants to merge 2 commits intonushell:mainfrom
tisonkun:handle-ctrl-c-graceful
Open

refactor!: graceful handle ReedlineEvent::CtrlC#1051
tisonkun wants to merge 2 commits intonushell:mainfrom
tisonkun:handle-ctrl-c-graceful

Conversation

@tisonkun
Copy link
Copy Markdown
Contributor

@tisonkun tisonkun commented Apr 14, 2026

This closes #1050

This aligns the manner of ReedlineEvent::CtrlD. I don't know what self.deactivate_menus(); does so do my guess to put it in the if self.editor.is_empty() branch.

Signed-off-by: tison <wander4096@gmail.com>
@tisonkun
Copy link
Copy Markdown
Contributor Author

cc @cptpiepmatz @fdncred in case if you have time to drop a review

Comment thread src/engine.rs Outdated
@tisonkun tisonkun requested a review from fdncred April 15, 2026 14:02
Copy link
Copy Markdown
Contributor

@fdncred fdncred left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM!

@tisonkun
Copy link
Copy Markdown
Contributor Author

@fdncred I'm waiting for this PR to be released to use in my project.

Are there any other blockers, or is there some estimation I can expect?

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Apr 15, 2026

I've been waiting for our patch release which happened just a few minutes ago. I'll probably land this PR tomorrow or the next day.

@tisonkun
Copy link
Copy Markdown
Contributor Author

Thanks for your information!

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.

Retrieve buffer when receive CtrlC

2 participants