mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-23 07:32:58 +00:00
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:
@@ -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