Module soft_tab

Source

Enums§

SnapDirection
The direction to snap. Left is used when moving left, Right when moving right. Nearest is used for mouse selection.

Functions§

snap_to_soft_tab
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.
snap_to_soft_tab_line_col
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 a line/column and returns a column.