killCommandLineBeforeCursor
killCommandLineBeforeCursor(
state):CommandLineEditState
Defined in: domain/cli/command-line-editing.ts:73
Cursor以前の入力を削除。
Parameters
Section titled “Parameters”現在の編集状態。
Returns
Section titled “Returns”Cursor以前を削除した編集状態。
Example
Section titled “Example”const result = killCommandLineBeforeCursor({ value: "go Stripe", selectionStart: 3, selectionEnd: 3 });// { value: "Stripe", selectionStart: 0, selectionEnd: 0 }