Skip to content

Commit

Permalink
Fix absence of --stdin-quit
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Dec 9, 2023
1 parent 51bdf83 commit f664b56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ pub fn make_config(args: &Args, state: &State) -> Result<Config> {

let delay_run = args.delay_run.map(|ts| ts.0);
let on_busy = args.on_busy_update;
let stdin_quit = args.stdin_quit;

let signal = args.signal;
let stop_signal = args.stop_signal;
Expand Down Expand Up @@ -256,7 +257,7 @@ pub fn make_config(args: &Args, state: &State) -> Result<Config> {
.events
.iter()
.any(|e| e.tags.contains(&Tag::Keyboard(Keyboard::Eof)));
if is_keyboard_eof {
if stdin_quit && is_keyboard_eof {
debug!("keyboard EOF, quit");
show_events();
action.quit();
Expand Down

0 comments on commit f664b56

Please sign in to comment.