pub fn snap_to_soft_tab(
text: &Rope,
offset: usize,
direction: SnapDirection,
tab_width: usize,
) -> usize
Expand description
If the cursor is inside a soft tab at the start of the line, snap it to the nearest, left or right edge. This version takes an offset and returns an offset.