Skip to content

moveCommandLineCursorToStart

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

moveCommandLineCursorToStart(state): CommandLineEditState

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

Cursorを行頭へ移動。

CommandLineEditState

現在の編集状態。

CommandLineEditState

行頭へ移動した編集状態。

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

Last updated: