Prefer position at the start of a tab insertion for the new cursor position.

This commit is contained in:
durstann
2026-09-01 22:52:22 -07:00
parent 813e9b7754
commit 2be7649178
@@ -83,7 +83,7 @@ const insertTab = (view)=>{
changes, changes,
selection : EditorSelection.create( selection : EditorSelection.create(
view.state.selection.ranges.map((range)=>EditorSelection.cursor( view.state.selection.ranges.map((range)=>EditorSelection.cursor(
mappedChanges.changes.mapPos(range.from, 1) + 2 mappedChanges.changes.mapPos(range.from, -1) + 2
) )
) )
) )