Merge pull request #4981 from firstmatekidd/tabstuff

Prefer position at the start of a tab insertion for the new cursor position
This commit is contained in:
Víctor Losada Hernández
2026-09-02 23:42:14 +02:00
committed by GitHub
@@ -83,7 +83,7 @@ const insertTab = (view)=>{
changes,
selection : EditorSelection.create(
view.state.selection.ranges.map((range)=>EditorSelection.cursor(
mappedChanges.changes.mapPos(range.from, 1) + 2
mappedChanges.changes.mapPos(range.from, -1) + 2
)
)
)