-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
add redraw command #4354
add redraw command #4354
Conversation
|
||
let callback = Box::pin(async move { | ||
let call: job::Callback = Box::new(|_editor, compositor| { | ||
compositor.clear().expect("unable to redraw"); |
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.
Not sure how OK it is to panic here. I was looking how the error from terminal.clear()
is propagated and it ultimately panics on resize()
so... 🤷
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 think panicking on this is ok. To not panic we could say
editor.set_error("Could not redraw terminal")
but if we can't draw the terminal then I doubt that would end up showing up 😄
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Merged this but had to revert in master, |
* add redraw command * update docs * Update helix-term/src/commands/typed.rs Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * update docs Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Not sure if we want this, as per this comment, but anyway, here it is.
Fixes #4350