handle non-cached scenario in tests land

This commit is contained in:
Noj Vek
2018-12-10 17:23:28 -08:00
parent 9005de1c42
commit a0d583b075
+4 -2
View File
@@ -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();