fix problems

This commit is contained in:
meganrogge
2022-03-16 12:45:18 -04:00
parent f678f0824b
commit 1bab173e99
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ export class SearchAddon implements ITerminalAddon {
if (!marker) {
return undefined;
}
const findResultDecoration = terminal.registerDecoration({ marker });
const findResultDecoration = terminal.registerDecoration({ marker, overviewRulerOptions: { color: 'yellow' } });
findResultDecoration?.onRender((e) => {
if (!e.classList.contains('xterm-find-result-decoration') && result.term.length && e.clientWidth > 0) {
e.classList.add('xterm-find-result-decoration');