From e12abf311410c2e6f4a3d80f110d5c48b310650e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 20 Jan 2026 19:55:18 +0000 Subject: [PATCH] fix: update CustomEditor constructor --- src/tui/components/custom-editor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tui/components/custom-editor.ts b/src/tui/components/custom-editor.ts index 80feb4145..d98b189f1 100644 --- a/src/tui/components/custom-editor.ts +++ b/src/tui/components/custom-editor.ts @@ -1,4 +1,4 @@ -import { Editor, type EditorTheme, Key, matchesKey, type TUI } from "@mariozechner/pi-tui"; +import { Editor, type EditorOptions, type EditorTheme, type TUI, Key, matchesKey } from "@mariozechner/pi-tui"; export class CustomEditor extends Editor { onEscape?: () => void; @@ -12,8 +12,8 @@ export class CustomEditor extends Editor { onShiftTab?: () => void; onAltEnter?: () => void; - constructor(tui: TUI, theme: EditorTheme) { - super(tui, theme); + constructor(tui: TUI, theme: EditorTheme, options?: EditorOptions) { + super(tui, theme, options); } handleInput(data: string): void { if (matchesKey(data, Key.alt("enter")) && this.onAltEnter) {