Make the buffer creation when (no file args, terminal stdin) explicitly distinct

. . . but functionally equivalent.
This commit is contained in:
Andy Kluger
2025-12-01 13:26:19 -05:00
parent c80e5cd97f
commit 4debd29ccf

View File

@@ -243,7 +243,7 @@ func LoadInput(args []string) []*buffer.Buffer {
buffers = append(buffers, buffer.NewBufferFromStringWithCommand(string(input), filename, btype, command)) buffers = append(buffers, buffer.NewBufferFromStringWithCommand(string(input), filename, btype, command))
} else { } else {
// Option 3, just open an empty buffer // Option 3, just open an empty buffer
buffers = append(buffers, buffer.NewBufferFromStringWithCommand(string(input), filename, btype, command)) buffers = append(buffers, buffer.NewBufferFromStringWithCommand("", filename, btype, command))
} }
} }