Skip to content

Commit

Permalink
fix: Fix double highlighting selection when using drawSelection. (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-vanderheijden authored Sep 21, 2023
1 parent 12bb2ce commit 7c5585a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/theme/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const createTheme = ({ theme, settings = {}, styles = [] }: CreateThemeOp

if (settings.selection) {
themeOptions[
'&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
'&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'
] = {
background: settings.selection + ' !important',
};
Expand Down

0 comments on commit 7c5585a

Please sign in to comment.