mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
fix: restore the cursor shape when exiting the app
This commit is contained in:
parent
38faf74feb
commit
655e3d3cbb
@ -1202,7 +1202,11 @@ fn restore_term(&mut self) -> std::io::Result<()> {
|
||||
.backend_mut()
|
||||
.show_cursor(CursorKind::Block)
|
||||
.ok();
|
||||
self.terminal.restore(terminal_config)
|
||||
|
||||
use std::io::Write;
|
||||
|
||||
self.terminal.restore(terminal_config)?;
|
||||
write!(std::io::stdout(), "\x1B[0 q") // reset to cursor shape
|
||||
}
|
||||
|
||||
pub async fn run<S>(&mut self, input_stream: &mut S) -> Result<i32, Error>
|
||||
|
Loading…
Reference in New Issue
Block a user