2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

fix: check for altHistory in sequence handling

fixes a panic
This commit is contained in:
sammyette 2024-04-16 10:34:24 -04:00
parent 11fc1edd94
commit 3d727e6411
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -868,7 +868,7 @@ func (rl *Instance) escapeSeq(r []rune) {
if err != nil {
return
}
if !rl.mainHist {
if !rl.mainHist && rl.altHistory != nil {
line, err = rl.altHistory.GetLine(rl.altHistory.Len() - 1)
if err != nil {
return