From 4bd3e1d0c2f4b8622516e91647c5acdebabb4886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Breitbart?= Date: Tue, 25 Jul 2023 13:19:08 +0200 Subject: [PATCH] remove magic numbers --- src/browser/renderer/dom/DomRendererRowFactory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/renderer/dom/DomRendererRowFactory.ts b/src/browser/renderer/dom/DomRendererRowFactory.ts index 0993212d45..6b221e45e7 100644 --- a/src/browser/renderer/dom/DomRendererRowFactory.ts +++ b/src/browser/renderer/dom/DomRendererRowFactory.ts @@ -138,7 +138,7 @@ export class DomRendererRowFactory { */ if ( cellAmount - && (isNull || (width === 1 && !isCombined && cc < 1424 && !metrics[cc])) + && (isNull || (width === 1 && !isCombined && cc < metrics.length && !metrics[cc])) && cell.bg === oldBg && cell.fg === oldFg && cell.extended.ext === oldExt && !isInSelection && !isCursorCell @@ -380,7 +380,7 @@ export class DomRendererRowFactory { // account first char for later merge if it meets the start conditions if ( - (isNull || (width === 1 && !isCombined && cc < 1424 && !metrics[cc])) + (isNull || (width === 1 && !isCombined && cc < metrics.length && !metrics[cc])) && !isBoldOrItalic && !isInSelection && !isCursorCell