Skip to content

Commit

Permalink
Fix Home, End on rxvt-unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Nov 8, 2023
1 parent 1084935 commit 91736bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tui/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (r *LightRenderer) escSequence(sz *int) Event {
return Event{F3, 0, nil}
case 'S':
return Event{F4, 0, nil}
case '1', '2', '3', '4', '5', '6':
case '1', '2', '3', '4', '5', '6', '7', '8':
if len(r.buffer) < 4 {
return Event{Invalid, 0, nil}
}
Expand Down Expand Up @@ -457,6 +457,10 @@ func (r *LightRenderer) escSequence(sz *int) Event {
return Event{PgUp, 0, nil}
case '6':
return Event{PgDn, 0, nil}
case '7':
return Event{Home, 0, nil}
case '8':
return Event{End, 0, nil}
case '1':
switch r.buffer[3] {
case '~':
Expand Down

0 comments on commit 91736bc

Please sign in to comment.