MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setSearchHighlight

Method setSearchHighlight

src/ink/ink.tsx:1055–1059  ·  view source on GitHub ↗

* Set the search highlight query. Non-empty → all visible occurrences * are inverted (SGR 7) on the next frame; first one also underlined. * Empty → clears (prevFrameContaminated handles the frame after). Same * damage-tracking machinery as selection — setCellStyleId doesn't track * dama

(query: string)

Source from the content-addressed store, hash-verified

1053 * damage, so the overlay forces full-frame damage while active.
1054 */
1055 setSearchHighlight(query: string): void {
1056 if (this.searchHighlightQuery === query) return;
1057 this.searchHighlightQuery = query;
1058 this.scheduleRender();
1059 }
1060
1061 /** Paint an EXISTING DOM subtree to a fresh Screen at its natural
1062 * height, scan for query. Returns positions relative to the element's

Callers 1

useSearchHighlightFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected