mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Fix #1657: alt-0 to alt-9
This commit is contained in:
@@ -518,6 +518,9 @@ func (r *LightRenderer) escSequence(sz *int) Event {
|
|||||||
if r.buffer[1] >= 'a' && r.buffer[1] <= 'z' {
|
if r.buffer[1] >= 'a' && r.buffer[1] <= 'z' {
|
||||||
return Event{AltA + int(r.buffer[1]) - 'a', 0, nil}
|
return Event{AltA + int(r.buffer[1]) - 'a', 0, nil}
|
||||||
}
|
}
|
||||||
|
if r.buffer[1] >= '0' && r.buffer[1] <= '9' {
|
||||||
|
return Event{Alt0 + int(r.buffer[1]) - '0', 0, nil}
|
||||||
|
}
|
||||||
return Event{Invalid, 0, nil}
|
return Event{Invalid, 0, nil}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user