summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-16 13:03:04 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2025-08-16 19:56:43 +0200
commit523e14019a5f8428d015084c632afaeb4f02f9bd (patch)
tree0e815571de5b4fe1f07579a3f0f8c47116ad0a6f
parent3e53d3ae08d41b21d9edcd0f9bbd9e0edbdfb138 (diff)
StdinInputReader: Do not support fake ^Z.
-rw-r--r--src/cmd/lib/types.zig6
1 files 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
}