Skip to content

moveCommandLineCursorToEnd

moveCommandLineCursorToEnd(state): CommandLineEditState

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

Cursorを行末へ移動。

CommandLineEditState

現在の編集状態。

CommandLineEditState

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

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

Last updated: