diff --git a/src/shell/Yield.zig b/src/shell/Yield.zig index 2c05239afe..e678947ea0 100644 --- a/src/shell/Yield.zig +++ b/src/shell/Yield.zig @@ -104,7 +104,7 @@ pub const Yield = union(enum) { if (x.state == .done) { // remove it from the pipeline stack as calling `.next()` will now deinit it if (std.mem.indexOfScalar(*Pipeline, pipeline_stack.items, x)) |idx| { - _ = pipeline_stack.swapRemove(idx); + _ = pipeline_stack.orderedRemove(idx); } continue :state x.next(); }