add 'echomsg' and 'echoerr' commands for logging

This commit is contained in:
Gokcehan committed 2019-02-28 21:58:14 +03:00
1 parent 6ec2924b6b
commit 193285a65d
9 files changed
+97 -68

No files matched your search

+2 -2
View File
@@ -34,11 +34,11 @@ func run() {
app := newApp()
if err := app.nav.readMarks(); err != nil {
app.ui.printf("reading marks file: %s", err)
app.ui.echoerrf("reading marks file: %s", err)
}
if err := app.readHistory(); err != nil {
app.ui.printf("reading history file: %s", err)
app.ui.echoerrf("reading history file: %s", err)
}
app.loop()