diff --git a/terminus-terminal/src/components/searchPanel.component.ts b/terminus-terminal/src/components/searchPanel.component.ts index d7c03717..609092cd 100644 --- a/terminus-terminal/src/components/searchPanel.component.ts +++ b/terminus-terminal/src/components/searchPanel.component.ts @@ -26,8 +26,8 @@ export class SearchPanelComponent { this.findNext(true) } - findNext (incremental? = false) { - if (!this.frontend.findNext(this.query, { ...this.options, incremental })) { + findNext (incremental = false) { + if (!this.frontend.findNext(this.query, { ...this.options, incremental: incremental || undefined })) { this.notFound = true this.toastr.error('Not found') } diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index 484b4460..38fec40a 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -113,6 +113,8 @@ export class XTermFrontend extends Frontend { } attach (host: HTMLElement): void { + this.configure() + this.xterm.open(host) this.opened = true