Don't use TabMap::expand_tabs in line_indent_for_buffer_row

This commit is contained in:
Max Brunsfeld 2023-03-28 17:37:57 -07:00
parent 08e93e9321
commit 5c1f82ae3d
3 changed files with 13 additions and 16 deletions

View file

@ -290,7 +290,7 @@ impl TabSnapshot {
fold_point.to_buffer_point(&self.suggestion_snapshot.fold_snapshot)
}
pub fn expand_tabs(&self, chars: impl Iterator<Item = char>, column: u32) -> u32 {
fn expand_tabs(&self, chars: impl Iterator<Item = char>, column: u32) -> u32 {
let tab_size = self.tab_size.get();
let mut expanded_chars = 0;