Use canonical BufferLine translation for search line text.
This enables BufferLine internal full-line string caching on cold-cache searches and substantially reduces findNext cold-cache runtime. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -379,7 +379,7 @@ export class SearchAddon extends Disposable implements ITerminalAddon, ISearchAp
|
||||
const blankLine = ' '.repeat(cols);
|
||||
for (const row of rows) {
|
||||
const line = terminal.buffer.active.getLine(row);
|
||||
textParts.push(line ? line.translateToString(false, 0, cols) : blankLine);
|
||||
textParts.push(line ? line.translateToString() : blankLine);
|
||||
}
|
||||
return textParts.join('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user