Convert code folding to be in terms of buffer points instead of display points

Co-authored-by: max <max@zed.dev>
This commit is contained in:
Mikayla Maki
2023-03-14 16:48:03 -07:00
co-authored by max
parent 828e9c1bb8
commit 75bea91245
5 changed files with 77 additions and 49 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ impl TabSnapshot {
.to_buffer_point(&self.fold_snapshot)
}
fn expand_tabs(
pub fn expand_tabs(
chars: impl Iterator<Item = char>,
column: usize,
tab_size: NonZeroU32,