chore: apply cargo fmt fix to plan_prompt.rs

This commit is contained in:
Implementist
2026-06-03 22:34:18 +08:00
committed by Hunter B
parent 6d79d55b6c
commit 47c071a0d5
+2 -1
View File
@@ -526,7 +526,8 @@ fn wrapped_line_count(lines: &[Line<'_>], width: usize) -> usize {
continue;
}
let leading_bytes = text.len() - text.trim_start().len();
let leading_spaces = UnicodeWidthStr::width(&text[..leading_bytes]).min(width.saturating_sub(1));
let leading_spaces =
UnicodeWidthStr::width(&text[..leading_bytes]).min(width.saturating_sub(1));
let mut line_count = 0;
let mut current_width = leading_spaces;
let mut first_word = true;