fix(prefix_cache): use "changes" instead of "drift" for footer chip pluralisation

Addresses Copilot review comment on ui.rs:3204: "2 drift" reads
awkwardly as a plural; "2 changes" is grammatical for both
singular and plural values.
This commit is contained in:
sternelee
2026-05-12 19:18:31 +08:00
parent 7d6c9a7124
commit 9d0face699
+1 -1
View File
@@ -3201,7 +3201,7 @@ fn format_prefix_stability_chip(app: &App) -> Option<(String, ratatui::style::Co
let label = if changes == 0 {
format!("P {}", pct)
} else {
format!("P {} ({} drift)", pct, changes)
format!("P {} ({} change{})", pct, changes, if changes == 1 { "" } else { "s" })
};
Some((label, color))