From 0cdfe3c615b21ec9e36967b0d24d5e6a75856203 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sat, 20 Jul 2019 15:58:27 +0200 Subject: [PATCH] fix: new line with clear input --- CHANGELOG.md | 1 + gpm/cli.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 330c1ee..c5791e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) ## Changed - Prefix error message with ERROR +- Fix new line with clear input ## v1.0.0 - 2019-07-12 diff --git a/gpm/cli.go b/gpm/cli.go index 48da39b..829878d 100644 --- a/gpm/cli.go +++ b/gpm/cli.go @@ -112,7 +112,6 @@ func (c *Cli) input(text string, defaultValue string, show bool) string { input := bufio.NewScanner(os.Stdin) input.Scan() if input.Text() == "" { - fmt.Printf("\n") return defaultValue } return input.Text()