mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: set cursor block after closing input prompt from insert mode (#109)
This commit is contained in:
parent
d3f0c9c059
commit
ac58f709a5
2 changed files with 4 additions and 0 deletions
|
|
@ -54,4 +54,7 @@ impl Term {
|
|||
|
||||
#[inline]
|
||||
pub fn set_cursor_bar() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::BlinkingBar)?) }
|
||||
|
||||
#[inline]
|
||||
pub fn set_cursor_default() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::DefaultUserShape)?) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ impl Drop for Term {
|
|||
|
||||
execute!(stdout(), DisableFocusChange, DisableBracketedPaste, LeaveAlternateScreen)?;
|
||||
|
||||
Self::set_cursor_default()?;
|
||||
self.show_cursor()?;
|
||||
Ok(disable_raw_mode()?)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue