Fix bug in selection handling in dom renderer

This commit is contained in:
Per Bothner
2023-08-16 15:34:35 -07:00
parent 2f0a7eee8d
commit 957e3e0f08
@@ -166,11 +166,11 @@ export class DomRendererRowFactory {
cellAmount cellAmount
&& ( && (
(isInSelection && oldIsInSelection) (isInSelection && oldIsInSelection)
|| (!isInSelection && cell.bg === oldBg) || (!isInSelection && !oldIsInSelection && cell.bg === oldBg)
) )
&& ( && (
(isInSelection && oldIsInSelection && colors.selectionForeground) (isInSelection && oldIsInSelection && colors.selectionForeground)
|| (!(isInSelection && oldIsInSelection && colors.selectionForeground) && cell.fg === oldFg) || cell.fg === oldFg
) )
&& cell.extended.ext === oldExt && cell.extended.ext === oldExt
&& isLinkHover === oldLinkHover && isLinkHover === oldLinkHover