Fix issue with history scrolling

Switching the line terminator to \n caused issues
with the history functionality, since queries would
be printed with a newline at the end.
This fixes that.

Change-Id: I053436fffe9d2cdee94acf40ea146f9b6bdfc1d8
diff --git a/cmd/sb/internal/reader/reader.go b/cmd/sb/internal/reader/reader.go
index 2bff765..d4a0db1 100644
--- a/cmd/sb/internal/reader/reader.go
+++ b/cmd/sb/internal/reader/reader.go
@@ -70,7 +70,11 @@
 		t.initScanner(input)
 		query += "\n" // User started a new line.
 	}
-	t.prompt.AppendHistory(query + string(terminator))
+	if terminator == '\n' {
+		t.prompt.AppendHistory(query)
+	} else {
+		t.prompt.AppendHistory(query + string(terminator))
+	}
 	return query, nil
 }