Skip to content

Commit 9d7b929

Browse files
authored
Merge pull request #4681 from PerBothner/dom-selection
Fix bug in selection handling in dom renderer
2 parents 2f0a7ee + 957e3e0 commit 9d7b929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/renderer/dom/DomRendererRowFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ export class DomRendererRowFactory {
166166
cellAmount
167167
&& (
168168
(isInSelection && oldIsInSelection)
169-
|| (!isInSelection && cell.bg === oldBg)
169+
|| (!isInSelection && !oldIsInSelection && cell.bg === oldBg)
170170
)
171171
&& (
172172
(isInSelection && oldIsInSelection && colors.selectionForeground)
173-
|| (!(isInSelection && oldIsInSelection && colors.selectionForeground) && cell.fg === oldFg)
173+
|| cell.fg === oldFg
174174
)
175175
&& cell.extended.ext === oldExt
176176
&& isLinkHover === oldLinkHover

0 commit comments

Comments
 (0)