aboutsummaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-14 22:19:26 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-14 22:19:26 +0200
commit08f5db1a74cb596a3ddd3de8912dfd858899447e (patch)
tree60b7b29df0674ec00e9c3ece028899927f0b6d09 /debug.go
parente50a36cb47be3a1e3f67069d75c51d94f9bfc6f5 (diff)
Minor changes and switch to tview fork
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug.go b/debug.go
index 2498f9d..b91ef60 100644
--- a/debug.go
+++ b/debug.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/rivo/tview"
+ "maunium.net/go/tview"
)
const DebugPaneHeight = 40
@@ -54,17 +54,17 @@ func NewDebugPane(gmx Gomuks) *DebugPane {
}
func (db *DebugPane) Printf(text string, args ...interface{}) {
- db.Write(fmt.Sprintf(text, args...))
+ db.Write(fmt.Sprintf(text, args...) + "\n")
}
func (db *DebugPane) Print(text ...interface{}) {
- db.Write(fmt.Sprint(text...))
+ db.Write(fmt.Sprintln(text...))
}
func (db *DebugPane) Write(text string) {
if db.pane != nil {
db.num++
- fmt.Fprintf(db.pane, "[%d] %s\n", db.num, text)
+ fmt.Fprintf(db.pane, "[%d] %s", db.num, text)
}
}