MCPcopy Index your code
hub / github.com/codeaashu/claude-code / setSearchPositions

Method setSearchPositions

src/ink/ink.tsx:1108–1115  ·  view source on GitHub ↗

Set the position-based highlight state. Every frame, writes CURRENT * style at positions[currentIdx] + rowOffset. null clears. The scan- * highlight (inverse on all matches) still runs — this overlays yellow * on top. rowOffset changes as the user scrolls (= message's current * scree

(state: {
    positions: MatchPosition[];
    rowOffset: number;
    currentIdx: number;
  } | null)

Source from the content-addressed store, hash-verified

1106 * on top. rowOffset changes as the user scrolls (= message's current
1107 * screen-top); positions stay stable (message-relative). */
1108 setSearchPositions(state: {
1109 positions: MatchPosition[];
1110 rowOffset: number;
1111 currentIdx: number;
1112 } | null): void {
1113 this.searchPositions = state;
1114 this.scheduleRender();
1115 }
1116
1117 /**
1118 * Set the selection highlight background color. Replaces the per-cell

Callers 1

useSearchHighlightFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected