Skip to content

Commit

Permalink
hotfix: fix scrolling
Browse files Browse the repository at this point in the history
Long term, we need to either use a library or a proper parser
  • Loading branch information
aaronjanse committed Apr 14, 2020
1 parent 0ef50ef commit 4aeced3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keypress/keypress.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func handleEscapeCode(data []byte, handle func(parsedData interface{})) {
}
case 79:
direction := directionNames[data[2]]
if len(data) == 15 { // scrolling
if len(data) > 3 { // scrolling
switch data[2] {
case 65:
handle(ScrollUp{})
Expand Down

0 comments on commit 4aeced3

Please sign in to comment.