Skip to content

Commit

Permalink
FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 17, 2025
1 parent 055e1c9 commit 0ef168b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ fn main_loop(core: &mut ShellCore) {
if let Ok(Some(mut s)) = Script::parse(&mut feeder, core, false){
s.exec(core);
set_history(core, &s.get_text());
}else{
feeder.consume(feeder.len());
feeder.nest = vec![("".to_string(), vec![])];
}
core.sigint.store(false, Relaxed);
}
Expand Down

0 comments on commit 0ef168b

Please sign in to comment.