Skip to content

killCommandLineBeforeCursor

This content is for v1.2.1. Switch to the latest version for up-to-date documentation.

killCommandLineBeforeCursor(state): CommandLineEditState

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

Cursor以前の入力を削除。

CommandLineEditState

現在の編集状態。

CommandLineEditState

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

const result = killCommandLineBeforeCursor({ value: "go Stripe", selectionStart: 3, selectionEnd: 3 });
// { value: "Stripe", selectionStart: 0, selectionEnd: 0 }

Last updated: