Skip to content

Commit

Permalink
remove magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Jul 25, 2023
1 parent ad14554 commit 4bd3e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/renderer/dom/DomRendererRowFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bd3e1d

Please sign in to comment.