MCPcopy Create free account
hub / github.com/anomalyco/opencode / equalFlags

Function equalFlags

packages/app/src/addons/serialize.ts:173–184  ·  view source on GitHub ↗
(cell1: IBufferCell, cell2: IBufferCell)

Source from the content-addressed store, hash-verified

171}
172
173function equalFlags(cell1: IBufferCell, cell2: IBufferCell): boolean {
174 return (
175 !!cell1.isInverse() === !!cell2.isInverse() &&
176 !!cell1.isBold() === !!cell2.isBold() &&
177 !!cell1.isUnderline() === !!cell2.isUnderline() &&
178 !!cell1.isBlink() === !!cell2.isBlink() &&
179 !!cell1.isInvisible() === !!cell2.isInvisible() &&
180 !!cell1.isItalic() === !!cell2.isItalic() &&
181 !!cell1.isDim() === !!cell2.isDim() &&
182 !!cell1.isStrikethrough() === !!cell2.isStrikethrough()
183 )
184}
185
186// ============================================================================
187// Base Serialize Handler

Callers 1

_diffStyleMethod · 0.85

Calls 8

isInverseMethod · 0.80
isBoldMethod · 0.80
isUnderlineMethod · 0.80
isBlinkMethod · 0.80
isInvisibleMethod · 0.80
isItalicMethod · 0.80
isDimMethod · 0.80
isStrikethroughMethod · 0.80

Tested by

no test coverage detected