Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: immediately execute command #882

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
dbg--
mrdgo committed Feb 11, 2025
commit 3a6ad518a00f9482c509e284c07df90d6fd41e0d
3 changes: 0 additions & 3 deletions src/engine.rs
Original file line number Diff line number Diff line change
@@ -643,7 +643,6 @@ impl Reedline {
/// Returns a [`std::io::Result`] in which the `Err` type is [`std::io::Result`]
/// and the `Ok` variant wraps a [`Signal`] which handles user inputs.
pub fn read_line(&mut self, prompt: &dyn Prompt, immediately_execute: bool) -> Result<Signal> {
dbg!(immediately_execute);
terminal::enable_raw_mode()?;
self.bracketed_paste.enter();
self.kitty_protocol.enter();
@@ -739,7 +738,6 @@ impl Reedline {

let mut events: Vec<Event> = vec![];

dbg!(self.current_buffer_contents());
if !immediately_execute {
// If the `external_printer` feature is enabled, we need to
// periodically yield so that external printers get a chance to
@@ -795,7 +793,6 @@ impl Reedline {
if let Some((x, y)) = resize {
reedline_events.push(ReedlineEvent::Resize(x, y));
}
println!("Checking and pushing Submit");
if immediately_execute {
reedline_events.push(ReedlineEvent::Submit);
}
Loading