From 523e14019a5f8428d015084c632afaeb4f02f9bd Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 16 Aug 2025 13:03:04 +0200 Subject: StdinInputReader: Do not support fake ^Z. --- src/cmd/lib/types.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cmd/lib/types.zig b/src/cmd/lib/types.zig index f6a32c0..57d370d 100644 --- a/src/cmd/lib/types.zig +++ b/src/cmd/lib/types.zig @@ -91,10 +91,8 @@ pub const StdinInputReader = struct { }; if (line) |input| { - // Check for Ctrl+Z (EOF marker) - ASCII 26 or ^Z text - if ((input.len == 1 and input[0] == 26) or - (input.len == 2 and input[0] == '^' and input[1] == 'Z')) - { + // Check for Ctrl+Z (EOF marker) - ASCII 26 + if (input.len == 1 and input[0] == 26) { allocator.free(input); return null; // EOF } -- cgit v1.2.1