Fixes #8504
This commit is contained in:
dave caruso
2024-01-26 20:55:48 -08:00
committed by GitHub
parent 08c9511acc
commit 6faeef6dc2
4 changed files with 10 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ pub const InitCommand = struct {
Output.flush();
var input = try std.io.getStdIn().reader().readUntilDelimiterAlloc(alloc, '\n', 1024);
var input = try bun.buffered_stdin.reader().readUntilDelimiterAlloc(alloc, '\n', 1024);
if (strings.endsWithChar(input, '\r')) {
input = input[0 .. input.len - 1];
}