From 26fb3be1ade417306f5cf4506eb388a51924dd93 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Sat, 1 Aug 2020 13:03:30 +0200 Subject: Yay go syntax --- cmd/irc/main.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cmd/irc/main.go') diff --git a/cmd/irc/main.go b/cmd/irc/main.go index dcb0427..8615a3e 100644 --- a/cmd/irc/main.go +++ b/cmd/irc/main.go @@ -124,18 +124,14 @@ func handleUIEvent(app *ui.UI, s *irc.Session, ev tcell.Event) { app.Exit() case tcell.KeyCtrlL: app.Resize() - case tcell.KeyCtrlU: - fallthrough - case tcell.KeyPgUp: + case tcell.KeyCtrlU, tcell.KeyPgUp: app.ScrollUp() if app.IsAtTop() { buffer := app.CurrentBuffer() t := app.CurrentBufferOldestTime() s.RequestHistory(buffer, t) } - case tcell.KeyCtrlD: - fallthrough - case tcell.KeyPgDn: + case tcell.KeyCtrlD, tcell.KeyPgDn: app.ScrollDown() case tcell.KeyCtrlN: if app.NextBuffer() && app.IsAtTop() { -- cgit v1.2.3