fix: trim input and remove comment

pull/24/head
TorchedSammy 2021-04-04 20:30:03 -04:00
parent cfdab00684
commit 22270dc537
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ func main() {
fmt.Fprintln(os.Stderr, err)
}
// I have no idea if we need this anymore
input = strings.TrimSpace(input)
if len(input) == 0 { continue }
if strings.HasSuffix(input, "\\") {
for {
input, err = ContinuePrompt(strings.TrimSuffix(input, "\\"))