Skip to content

Commit 801225d

Browse files
Update commands.ts
1 parent 0b4265e commit 801225d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function createHighlightCommand(
3636

3737
// @ts-expect-error, not typed
3838
const editorView = editor.cm as EditorView;
39-
createHighlight(editorView);
39+
createHighlight(editorView, selectedText);
4040
}
4141

4242
function expandSelectionBoundary(editor: Editor) {

0 commit comments

Comments
 (0)