Close #43
All checks were successful
Test Rust project / test (ubuntu-latest, stable) (push) Successful in 49s

This takes rendering time from ~0.5ms to ~0.5ms.
When highlighting a range it may get up to 1.5ms.
This commit is contained in:
2026-02-09 12:58:49 -07:00
parent 4239844e0e
commit d9f29434e9
2 changed files with 59 additions and 9 deletions

View File

@@ -489,6 +489,8 @@ impl Grid {
}
}
/// Gets the indices of the range labels.
/// A:B -> (0,1)
pub fn range_as_indices(range: &str) -> Option<(usize, usize)> {
let v = range.split(':').collect::<Vec<&str>>();
if v.len() == 2 {