Fix some theme colors & drill summary delete continue

This commit is contained in:
2026-02-22 21:23:13 -05:00
parent f8bcad247b
commit 0c5a70d5c4
4 changed files with 243 additions and 25 deletions

View File

@@ -385,6 +385,7 @@ fn handle_result_key(app: &mut App, key: KeyEvent) {
KeyCode::Char('y') => {
app.delete_session();
app.history_confirm_delete = false;
app.continue_drill();
}
KeyCode::Char('n') | KeyCode::Esc => {
app.history_confirm_delete = false;
@@ -1584,6 +1585,8 @@ mod review_tests {
assert!(!app.history_confirm_delete);
assert_eq!(app.drill_history.len(), 1);
assert_eq!(app.drill_history[0].timestamp, older.timestamp);
assert_eq!(app.screen, AppScreen::Drill);
assert!(app.drill.is_some());
}
#[test]
@@ -1598,6 +1601,7 @@ mod review_tests {
assert!(!app.history_confirm_delete);
assert_eq!(app.drill_history.len(), 2);
assert_eq!(app.screen, AppScreen::DrillResult);
}
#[test]