From 0f6569a3f35ca53fe7dcfe609db080419de4fb49 Mon Sep 17 00:00:00 2001 From: auvred Date: Tue, 5 Sep 2023 09:03:10 +0000 Subject: [PATCH] fix: set cursor block after closing input prompt from insert mode --- core/src/input/input.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/input/input.rs b/core/src/input/input.rs index 31752fb7..f62e63f3 100644 --- a/core/src/input/input.rs +++ b/core/src/input/input.rs @@ -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 }