mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
handle non-cached scenario in tests land
This commit is contained in:
@@ -173,10 +173,12 @@ export class SearchHelper implements ISearchHelper {
|
||||
return;
|
||||
}
|
||||
|
||||
let stringLine = this._linesCache[y];
|
||||
let stringLine = this._linesCache ? this._linesCache[y] : void 0;
|
||||
if (stringLine === void 0) {
|
||||
stringLine = this.translateBufferLineToStringWithWrap(y, true);
|
||||
this._linesCache[y] = stringLine;
|
||||
if (this._linesCache) {
|
||||
this._linesCache[y] = stringLine;
|
||||
}
|
||||
}
|
||||
|
||||
const searchStringLine = searchOptions.caseSensitive ? stringLine : stringLine.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user