Delete till previous tabstop when backspacing within indent column

This commit is contained in:
Antonio Scandurra 2022-03-10 10:05:00 +01:00
parent 9076345a8f
commit ee6d7fc6d5
3 changed files with 68 additions and 23 deletions

View file

@ -1657,7 +1657,7 @@ impl MultiBufferSnapshot {
}
}
fn buffer_line_for_row(&self, row: u32) -> Option<(&BufferSnapshot, Range<Point>)> {
pub fn buffer_line_for_row(&self, row: u32) -> Option<(&BufferSnapshot, Range<Point>)> {
let mut cursor = self.excerpts.cursor::<Point>();
cursor.seek(&Point::new(row, 0), Bias::Right, &());
if let Some(excerpt) = cursor.item() {