Fixed bell on history ends

tranquillity-codes 6 days ago
parent f6d24b00cd
commit 6097b4c74c

@ -227,6 +227,7 @@ impl ReaderState {
let h = self.history.clone();
let mut i = self.history_inx;
if i.map_or(false, |v| v+1 == h.len()) {
bell();
return;
}
if i.is_none() {
@ -254,6 +255,7 @@ impl ReaderState {
let h = self.history.clone();
let mut i = self.history_inx;
if i.is_none() {
bell();
return;
} else if i.map_or(false, |v| v == 0) {
self.saved_restore();

Loading…
Cancel
Save