@@ -3,7 +3,7 @@ import * as fn from "jsr:@denops/std@^7.3.2/function";
33import * as buffer from "jsr:@denops/std@^7.3.2/buffer" ;
44import type { Dimension } from "jsr:@vim-fall/core@^0.3.0/coordinator" ;
55
6- import { Spinner } from "../lib/spinner.ts" ;
6+ import { Spinner , UNICODE_SPINNER } from "../lib/spinner.ts" ;
77import { adjustOffset } from "../lib/adjust_offset.ts" ;
88import { getByteLength } from "../lib/stringutil.ts" ;
99import { BaseComponent , type ComponentProperties } from "./_component.ts" ;
@@ -12,6 +12,10 @@ export const HIGHLIGHT_HEADER = "FallInputHeader";
1212export const HIGHLIGHT_CURSOR = "FallInputCursor" ;
1313export const HIGHLIGHT_COUNTER = "FallInputCounter" ;
1414
15+ const HEAD_SYMBOL = ">" ;
16+ const FAIL_SYMBOL = "✕" ;
17+ const SPINNER = UNICODE_SPINNER ;
18+
1519/**
1620 * Parameters for the InputComponent, extending ComponentProperties.
1721 * Includes properties specific to the input component like title, spinner, and symbols.
@@ -50,7 +54,7 @@ export type InputComponentParams = ComponentProperties & {
5054 * └ spinner └ truncated
5155 *
5256 * ╭─────────────────────────────────╮
53- * │> QUE█Y 0/0X │
57+ * │> QUE█Y 0/0✕ │
5458 * ╰────────────────────────────────┊╯
5559 * └ failSymbol
5660 * ```
@@ -78,9 +82,9 @@ export class InputComponent extends BaseComponent {
7882 ) {
7983 super ( params ) ;
8084 this . #title = title ?? "" ;
81- this . #spinner = new Spinner ( spinner ) ;
82- this . #headSymbol = headSymbol ?? ">" ;
83- this . #failSymbol = failSymbol ?? "X" ;
85+ this . #spinner = new Spinner ( spinner ?? SPINNER ) ;
86+ this . #headSymbol = headSymbol ?? HEAD_SYMBOL ;
87+ this . #failSymbol = failSymbol ?? FAIL_SYMBOL ;
8488 }
8589
8690 /** The title of the input component */
0 commit comments