mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
chore: set_cursor_block -> set_cursor_default
This commit is contained in:
parent
0f6569a3f3
commit
56d6ad570e
2 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ impl Input {
|
|||
cb.send(if submit { Ok(self.snap_mut().value.clone()) } else { Err(anyhow!("canceled")) });
|
||||
}
|
||||
|
||||
let _ = Term::set_cursor_block();
|
||||
let _ = Term::set_cursor_default();
|
||||
self.visible = false;
|
||||
true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)?) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue