about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJonathan Halmen <jonathan@halmen.xyz>2020-03-26 21:03:44 +0100
committerDrew DeVault <sir@cmpwn.com>2020-03-26 16:04:11 -0400
commit35402e21d9b75f0d0a3a4efb8b552e1c9a2e6d59 (patch)
treee08f295acbaceb0e41d109fb16ba1efd94b9ed62
parent294fead7abae9de9c0bc6afde30b1d29d98a10e6 (diff)
downloadaerc-35402e21d9b75f0d0a3a4efb8b552e1c9a2e6d59.tar.gz
fix function keys in terminal widget
off-by-one error
-rw-r--r--widgets/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 8c557df..8fc38ce 100644
--- a/widgets/terminal.go
+++ b/widgets/terminal.go
@@ -80,7 +80,7 @@ func init() {
 	keyMap[tcell.KeyPgDn] = directKey(vterm.KeyPageDown)
 	for i := 0; i < 64; i++ {
 		keyMap[tcell.Key(int(tcell.KeyF1)+i)] =
-			directKey(vterm.Key(int(vterm.KeyFunction0) + i))
+			directKey(vterm.Key(int(vterm.KeyFunction0) + i + 1))
 	}
 	keyMap[tcell.KeyTAB] = directKey(vterm.KeyTab)
 	keyMap[tcell.KeyESC] = directKey(vterm.KeyEscape)