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 16, 2024
1 parent 78b6bdc commit ce721c5
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;

Check warning on line 56 in visual/src/visual_hex/events.rs

View check run for this annotation

Codecov / codecov/patch

visual/src/visual_hex/events.rs#L54-L56

Added lines #L54 - L56 were not covered by tests
}
_ => (),
Expand Down

0 comments on commit ce721c5

Please sign in to comment.