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:
parent
828e9c1bb8
commit
75bea91245
5 changed files with 77 additions and 49 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue