Skip to content

Commit 7c5585a

Browse files
authoredSep 21, 2023
fix: Fix double highlighting selection when using drawSelection. (#573)
1 parent 12bb2ce commit 7c5585a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎themes/theme/src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp
9595

9696
if (settings.selection) {
9797
themeOptions[
98-
'&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
98+
'&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
9999
] = {
100100
background: settings.selection + ' !important',
101101
};

0 commit comments

Comments
 (0)
Please sign in to comment.