mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: set cursor block after closing input prompt from insert mode
This commit is contained in:
parent
a2ecc9fb70
commit
0f6569a3f3
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ use std::ops::Range;
|
|||
use anyhow::{anyhow, Result};
|
||||
use config::keymap::Key;
|
||||
use crossterm::event::KeyCode;
|
||||
use shared::CharKind;
|
||||
use shared::{CharKind, Term};
|
||||
use tokio::sync::oneshot::Sender;
|
||||
use unicode_width::UnicodeWidthStr;
|
||||
|
||||
|
|
@ -43,6 +43,7 @@ impl Input {
|
|||
cb.send(if submit { Ok(self.snap_mut().value.clone()) } else { Err(anyhow!("canceled")) });
|
||||
}
|
||||
|
||||
let _ = Term::set_cursor_block();
|
||||
self.visible = false;
|
||||
true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue