mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Fix select-history-next.
This commit is contained in:
parent
2be8cef135
commit
011f4dcaa2
|
@ -35,7 +35,7 @@ func (ed *Editor) prevHistory() bool {
|
|||
func (ed *Editor) nextHistory() bool {
|
||||
if ed.store != nil {
|
||||
// Persistent history
|
||||
i, line, err := ed.store.FirstCmd(ed.history.current, ed.history.prefix, true)
|
||||
i, line, err := ed.store.FirstCmd(ed.history.current+1, ed.history.prefix, true)
|
||||
if err == nil {
|
||||
ed.history.jump(i, line)
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue
Block a user