moveCommandLineCursorToStart
moveCommandLineCursorToStart(
state):CommandLineEditState
Defined in: domain/cli/command-line-editing.ts:47
Cursorを行頭へ移動。
Parameters
Section titled “Parameters”現在の編集状態。
Returns
Section titled “Returns”行頭へ移動した編集状態。
Example
Section titled “Example”const result = moveCommandLineCursorToStart({ value: "go Stripe", selectionStart: 9, selectionEnd: 9 });// { value: "go Stripe", selectionStart: 0, selectionEnd: 0 }