forked from mirror/readline
fix fwd search crash
This commit is contained in:
parent
0de649aeb5
commit
bc96fada95
|
@ -90,6 +90,8 @@ func (o *opHistory) FindHistoryFwd(isNewSearch bool, rs []rune, start int) (int,
|
|||
if elem == o.current {
|
||||
if len(item)-1 >= start {
|
||||
item = item[start:]
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
}
|
||||
idx := RunesIndex(item, rs)
|
||||
|
|
Loading…
Reference in New Issue