Store last position when scheduling as review (#1800)

This commit is contained in:
RumovZ 2022-04-14 10:53:58 +02:00 committed by GitHub
parent e29a5f779b
commit 8ccadd96e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ impl Card {
}
fn schedule_as_review(&mut self, interval: u32, due: i32, ease_factor: u16) {
self.original_position = self.last_position();
self.remove_from_filtered_deck_before_reschedule();
self.interval = interval.max(1);
self.due = due;