killCommandLineAfterCursor
This content is for v1.3.1. Switch to the latest version for up-to-date documentation.
killCommandLineAfterCursor(
state):CommandLineEditState
Defined in: domain/cli/command-line-editing.ts:86
Cursor以後の入力を削除。
Parameters
Section titled “Parameters”現在の編集状態。
Returns
Section titled “Returns”Cursor以後を削除した編集状態。
Example
Section titled “Example”const result = killCommandLineAfterCursor({ value: "go Stripe", selectionStart: 2, selectionEnd: 2 });// { value: "go", selectionStart: 2, selectionEnd: 2 }