normalizeCommandHistoryCursor
This content is for v1.2.1. Switch to the latest version for up-to-date documentation.
normalizeCommandHistoryCursor(
currentIndex,itemCount):CommandHistoryCursorIndex
Defined in: domain/storage/command-history-navigation.ts:108
Command history cursorを現在の件数に合わせて正規化。
Parameters
Section titled “Parameters”currentIndex
Section titled “currentIndex”現在のcursor index。
itemCount
Section titled “itemCount”number
Command history件数。
Returns
Section titled “Returns”正規化後cursor index。
Example
Section titled “Example”const result = normalizeCommandHistoryCursor(3, 2);// false