mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-25 17:54:57 +03:00
fix: set cursor block after closing input prompt from insert mode (#109)
This commit is contained in:
parent
d3f0c9c059
commit
ac58f709a5
@ -54,4 +54,7 @@ impl Term {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_cursor_bar() -> Result<()> { Ok(execute!(stdout(), SetCursorStyle::BlinkingBar)?) }
|
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)?;
|
execute!(stdout(), DisableFocusChange, DisableBracketedPaste, LeaveAlternateScreen)?;
|
||||||
|
|
||||||
|
Self::set_cursor_default()?;
|
||||||
self.show_cursor()?;
|
self.show_cursor()?;
|
||||||
Ok(disable_raw_mode()?)
|
Ok(disable_raw_mode()?)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user