Don't transfer to history listing on error.

This commit is contained in:
Qi Xiao 2016-02-27 03:19:18 +01:00
parent 92fb6e5161
commit d149955c1d

View File

@ -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) {