summaryrefslogtreecommitdiffstats
path: root/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'app.go')
-rw-r--r--app.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.go b/app.go
index 2f1fec9..a95b180 100644
--- a/app.go
+++ b/app.go
@@ -232,7 +232,7 @@ func (app *app) writeHistory() error {
}
for _, cmd := range app.cmdHistory {
- _, err = f.WriteString(fmt.Sprintf("%s %s\n", cmd.prefix, cmd.value))
+ _, err = fmt.Fprintf(f, "%s %s\n", cmd.prefix, cmd.value)
if err != nil {
return fmt.Errorf("writing history file: %s", err)
}
@@ -585,5 +585,4 @@ func (app *app) runShell(s string, args []string, prefix string) {
app.ui.exprChan <- &callExpr{"load", nil, 1}
}()
}
-
}