diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/irc/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/irc/main.go b/cmd/irc/main.go index 9999e14..b11f34d 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -77,13 +77,13 @@ func main() { case ev := <-app.Events: switch ev := ev.(type) { case *tcell.EventResize: - app.Draw() + app.Resize() case *tcell.EventKey: switch ev.Key() { case tcell.KeyCtrlC: app.Exit() case tcell.KeyCtrlL: - app.Draw() + app.Resize() case tcell.KeyCtrlN: app.NextBuffer() case tcell.KeyCtrlP: @@ -193,7 +193,7 @@ func formatIRCMessage(nick, content string) (line string) { return } - line = fmt.Sprintf("%s%s\x00: %s", string(c[:]), nick, content) + line = fmt.Sprintf("%s%s\x00: %s", string(c[:]), nick, content) return } |