Skip to content

Commit 1d2a863

Browse files
committed
Update codeit.js
1 parent c9fba00 commit 1d2a863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codeit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ class CodeitElement extends HTMLElement {
642642
cd.deleteCurrentSelection();
643643

644644
// restore pos in text
645-
cd.setSelection(pos.start);
645+
cd.setSelection(pos.start - cd.options.tab.length);
646646

647647
}
648648

0 commit comments

Comments
 (0)