whups a buffer wasn't saved during the refactor

This commit is contained in:
bunnie 2021-08-04 02:05:26 +08:00
parent ef671dd6a3
commit c81a9a7644

View file

@ -106,7 +106,7 @@ fn xmain() -> ! {
}
Some(Opcode::Unpick) => {
if history.len() == 1 {
history.remove(0);
let _ = history.remove(0);
} else if history.len() > 1 {
let _ = history.pop(); // discard the last entry
}