set data changed to false if true

This commit is contained in:
meganrogge
2022-03-21 10:58:44 -04:00
parent 12a999dfe0
commit bec4cb37d4
+3 -1
View File
@@ -133,7 +133,9 @@ export class SearchAddon implements ITerminalAddon {
this._resultDecorations.set(resultDecoration.marker.line, decorationsForLine);
}
});
this._dataChanged = false;
if (this._dataChanged) {
this._dataChanged = false;
}
if (this._searchResults.size > 0) {
this._cachedSearchTerm = term;
}