Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use a bigger prefix for numeric sorting (#17752)
Conrad Irwin092f29d3944f
diff --git a/crates/util/src/util.rs b/crates/util/src/util.rsindex 40a5cf6212e..a161b8bac2b 100644--- a/crates/util/src/util.rs+++ b/crates/util/src/util.rs@@ -644,7 +644,7 @@ impl<T: Ord + Clone> RangeExt<T> for RangeInclusive<T> {/// This is useful for turning regular alphanumerically sorted sequences as `1-abc, 10, 11-def, .., 2, 21-abc`/// into `1-abc, 2, 10, 11-def, .., 21-abc`#[derive(Debug, PartialEq, Eq)]-pub struct NumericPrefixWithSuffix<'a>(Option<u32>, &'a str);+pub struct NumericPrefixWithSuffix<'a>(Option<u64>, &'a str);impl<'a> NumericPrefixWithSuffix<'a> {pub fn from_numeric_prefixed_str(str: &'a str) -> Self {