From c08062420f6604f4c25e0e0a3b436ec4a5d49c20 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 27 Sep 2023 07:56:31 -0700 Subject: [PATCH] Bring back search clearActiveDecoration This was removed accidentally in 57db72d Fixes #4821 --- addons/xterm-addon-search/src/SearchAddon.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index 10fc1ecc..959214c9 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -119,6 +119,10 @@ export class SearchAddon extends Disposable implements ITerminalAddon { } } + public clearActiveDecoration(): void { + this._selectedDecoration.clear(); + } + /** * Find the next instance of the term, then scroll to and select it. If it * doesn't exist, do nothing.