Update write/command.go

Co-authored-by: Maas Lalani <maas@lalani.dev>
This commit is contained in:
Mikael Fangel 2023-03-09 18:45:52 +01:00 committed by Maas Lalani
parent f8adcd649b
commit f46060ac43
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import (
func (o Options) Run() error {
in, _ := stdin.Read()
if in != "" && o.Value == "" {
o.Value = strings.Replace(in, "\r", "", -1)
o.Value = strings.ReplaceAll(in, "\r", "")
}
a := textarea.New()