Skip to content

Commit

Permalink
Evaluate commands silently in visual mode
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed <>
  • Loading branch information
Ahmed committed Sep 15, 2024
1 parent c91dd71 commit 7fca98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visual/src/visual_hex/events.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use rair_core::Core;
use rair_eval::rair_eval;
use rair_eval::rair_eval_no_out;
use ratatui::crossterm::event::{KeyCode, KeyEvent};

use super::{editor::Editor, mode::Mode, NextAction, VisualHex};
Expand Down Expand Up @@ -52,7 +52,7 @@ impl VisualHex {
}
KeyCode::Enter => {
let cmd = cmd.get_str();
rair_eval(core, cmd);
rair_eval_no_out(core, cmd);
self.mode = Mode::View;
}
_ => (),
Expand Down

0 comments on commit 7fca98c

Please sign in to comment.