Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 18, 2025
1 parent ad18a08 commit 537cba7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/elements/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,13 @@ impl Script {
return Err(e);
},
Status::NeedMoreLine => {
if ! feeder.feed_additional_line(core).is_ok() {
break;
let res = feeder.feed_additional_line(core);
if let Err(e) = res {
feeder.consume(feeder.len());
return Err(e);
}
},
}
}

feeder.consume(feeder.len());
Ok(None)
}
}

0 comments on commit 537cba7

Please sign in to comment.