From 0bccb9a71f3009e6ce073a850461d54fd49880bc Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 00:26:04 +0800 Subject: [PATCH] fix: clear keyword should clear highlight (#1088) (#1089) (cherry picked from commit a88bed9eb49632dc4ccb132d9f53b162197c557c) Signed-off-by: Andy Lee Co-authored-by: Andy Lee --- pkg/harvester/components/SerialConsole/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/harvester/components/SerialConsole/index.vue b/pkg/harvester/components/SerialConsole/index.vue index 459d653e..2be03ebf 100644 --- a/pkg/harvester/components/SerialConsole/index.vue +++ b/pkg/harvester/components/SerialConsole/index.vue @@ -213,9 +213,15 @@ export default { }, clearSearchHighlights() { - this.terminal?.clearSelection(); this.searchAddon?.clearActiveDecoration(); this.searchAddon?.clearDecorations(); + this.terminal?.clearSelection(); + + // Disposing the search decorations doesn't repaint the webgl/canvas + // layer, so force a refresh to remove the lingering highlight. + if (this.terminal) { + this.terminal.refresh(0, this.terminal.rows - 1); + } }, findNext() {