Skip to content

killCommandLineAfterCursor

killCommandLineAfterCursor(state): CommandLineEditState

Defined in: domain/cli/command-line-editing.ts:86

Cursor以後の入力を削除。

CommandLineEditState

現在の編集状態。

CommandLineEditState

Cursor以後を削除した編集状態。

const result = killCommandLineAfterCursor({ value: "go Stripe", selectionStart: 2, selectionEnd: 2 });
// { value: "go", selectionStart: 2, selectionEnd: 2 }