MCPcopy Create free account
hub / github.com/modem-dev/hunk / applySelectionPrefix

Function applySelectionPrefix

src/ui/diff/renderRows.tsx:845–850  ·  view source on GitHub ↗

Apply the selection-highlight blend to a prefix descriptor.

(prefix: P, theme: AppTheme)

Source from the content-addressed store, hash-verified

843
844/** Apply the selection-highlight blend to a prefix descriptor. */
845function applySelectionPrefix<P extends { bg: string }>(prefix: P, theme: AppTheme): P {
846 return {
847 ...prefix,
848 bg: selectionHighlightBg(prefix.bg, theme),
849 };
850}
851
852/** Render one split-view cell as prefix + gutter + content spans. */
853function renderSplitCell(

Callers 4

renderSplitCellFunction · 0.85
renderStackCellFunction · 0.85

Calls 1

selectionHighlightBgFunction · 0.90

Tested by

no test coverage detected