diff --git a/crates/nu-protocol/src/value/stream.rs b/crates/nu-protocol/src/value/stream.rs index 47ccb6b44..af0a6dd76 100644 --- a/crates/nu-protocol/src/value/stream.rs +++ b/crates/nu-protocol/src/value/stream.rs @@ -77,6 +77,12 @@ impl Iterator for RawStream { type Item = Result; fn next(&mut self) -> Option { + if let Some(ctrlc) = &self.ctrlc { + if ctrlc.load(Ordering::SeqCst) { + return None; + } + } + // If we know we're already binary, just output that if self.is_binary { match self.stream.next() {