Skip to content

Commit 4debd29

Browse files
committed
Make the buffer creation when (no file args, terminal stdin) explicitly distinct
. . . but functionally equivalent.
1 parent c80e5cd commit 4debd29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/micro/micro.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func LoadInput(args []string) []*buffer.Buffer {
243243
buffers = append(buffers, buffer.NewBufferFromStringWithCommand(string(input), filename, btype, command))
244244
} else {
245245
// Option 3, just open an empty buffer
246-
buffers = append(buffers, buffer.NewBufferFromStringWithCommand(string(input), filename, btype, command))
246+
buffers = append(buffers, buffer.NewBufferFromStringWithCommand("", filename, btype, command))
247247
}
248248
}
249249

0 commit comments

Comments
 (0)