Skip to content

Commit

Permalink
Disable cursor before executing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vinc committed Sep 18, 2024
1 parent 1e2b5b7 commit 10ad403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usr/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 10ad403

Please sign in to comment.