mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Make the buffer creation when (no file args, terminal stdin) explicitly distinct
. . . but functionally equivalent.
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user