Skip to content

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以後の入力を削除。

CommandLineEditState

現在の編集状態。

CommandLineEditState

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

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

Last updated: