From 10ad40322819ae37bdc4abf663e3efbc17f8ec57 Mon Sep 17 00:00:00 2001 From: Vincent Ollivier Date: Wed, 18 Sep 2024 15:30:29 +0200 Subject: [PATCH] Disable cursor before executing commands --- src/usr/edit.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/usr/edit.rs b/src/usr/edit.rs index 86723a51..48b5e25d 100644 --- a/src/usr/edit.rs +++ b/src/usr/edit.rs @@ -597,6 +597,7 @@ impl Editor { pub fn exec(&mut self) { if let Some(cmd) = prompt(&mut self.command_prompt, ":") { self.exec_command(&cmd); + print!("\x1b[?25l"); // Disable cursor } }