mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-20 16:42:58 +00:00
Prefer position at the start of a tab insertion for the new cursor position.
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user