mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
Don't transfer to history listing on error.
This commit is contained in:
parent
92fb6e5161
commit
d149955c1d
|
@ -394,13 +394,13 @@ func startHistoryListing(ed *Editor) {
|
|||
ed.notify("store not connected")
|
||||
return
|
||||
}
|
||||
ed.mode = modeHistoryListing
|
||||
hl, err := newHistoryListing(ed.store)
|
||||
if err != nil {
|
||||
ed.notify("%s", err)
|
||||
return
|
||||
}
|
||||
ed.historyListing = hl
|
||||
ed.mode = modeHistoryListing
|
||||
}
|
||||
|
||||
func defaultHistoryListing(ed *Editor) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user