From a88bed9eb49632dc4ccb132d9f53b162197c557c Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Wed, 5 Aug 2026 00:24:34 +0800 Subject: [PATCH] fix: clear keyword should clear highlight (#1088) Signed-off-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() {