Skip to content

Commit be8fbeb

Browse files
committed
Update filebrowser.js
1 parent 2842fd1 commit be8fbeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filebrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ function setupEditor() {
24492449
const pos = cd.getSelection();
24502450

24512451
// select beautified text
2452-
cd.setSelection(pos.start, (pos.start - beautifiedText.length));
2452+
cd.setSelection((pos.start - beautifiedText.length), pos.start);
24532453

24542454
// dispatch type event (simulate typing)
24552455
cd.dispatchTypeEvent();

0 commit comments

Comments
 (0)