Reuse grapheme-safe summary labels for scenario reorder
This commit is contained in:
@@ -36,12 +36,7 @@ pub(crate) enum Intent {
|
||||
}
|
||||
|
||||
fn short_label(value: &str) -> String {
|
||||
let mut chars = value.chars();
|
||||
let mut label: String = chars.by_ref().take(24).collect();
|
||||
if chars.next().is_some() {
|
||||
label.push('…');
|
||||
}
|
||||
label
|
||||
crate::views::short(value, 24)
|
||||
}
|
||||
|
||||
/// Actual committed block order, independent of capture order or saved Y.
|
||||
|
||||
Reference in New Issue
Block a user