mirror of
https://github.com/charmbracelet/gum
synced 2024-06-15 20:15:08 +02:00
Update write/command.go
Co-authored-by: Maas Lalani <maas@lalani.dev>
This commit is contained in:
parent
f8adcd649b
commit
f46060ac43
|
@ -19,7 +19,7 @@ import (
|
||||||
func (o Options) Run() error {
|
func (o Options) Run() error {
|
||||||
in, _ := stdin.Read()
|
in, _ := stdin.Read()
|
||||||
if in != "" && o.Value == "" {
|
if in != "" && o.Value == "" {
|
||||||
o.Value = strings.Replace(in, "\r", "", -1)
|
o.Value = strings.ReplaceAll(in, "\r", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
a := textarea.New()
|
a := textarea.New()
|
||||||
|
|
Loading…
Reference in a new issue