summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHubert Hirtz <hubert.hirtz@laposte.net>2020-06-04 22:55:15 +0200
committerHubert Hirtz <hubert.hirtz@laposte.net>2020-06-04 22:55:15 +0200
commitf7331d1c665bd997fe5bc41c6d375d30ea9f4457 (patch)
treefe3ba9f932ace2b8582fa0f9b903349aa44017cb /cmd
parentFix color codes (diff)
Buffers are now shown (mostly) correctly
senpai must now split on whitespace when drawing
Diffstat (limited to 'cmd')
-rw-r--r--cmd/irc/main.go6
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
}