refactor: clear searach result after close

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2026-08-03 23:21:37 +08:00
parent 57ee92051e
commit 9f9069fb63
No known key found for this signature in database
GPG Key ID: 39DC4436AE3564D5

View File

@ -191,6 +191,7 @@ export default {
closeSearch() {
this.showSearch = false;
this.searchAddon?.clearDecorations();
this.terminal?.focus();
},
@ -212,6 +213,8 @@ export default {
onSearchInput() {
if (!this.searchQuery) {
this.searchAddon?.clearDecorations();
return;
}