diff options
author | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-01 13:03:30 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtzfr.eu> | 2020-08-01 13:03:30 +0200 |
commit | 26fb3be1ade417306f5cf4506eb388a51924dd93 (patch) | |
tree | c0d2b5f2e00387a48e1b65ea4d148ca3411da2d5 /cmd | |
parent | Add constants for IRC replies (diff) |
Yay go syntax
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/irc/main.go | 8 |
1 files changed, 2 insertions, 6 deletions
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() { |