Skip to content

Commit 93f949a

Browse files
committed
Update codeit.js
1 parent f079003 commit 93f949a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/codeit.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,9 @@ class CodeitElement extends HTMLElement {
14641464
// start looking for adjacent nodes
14651465
if (caretPosInText > 0) {
14661466

1467-
return getCaretTextNode(startPos-1);
1467+
const [node, offset] = getCaretTextNode(startPos-1);
1468+
1469+
return [node, offset];
14681470

14691471
} else {
14701472

0 commit comments

Comments
 (0)