Rich text / foldkit-mixins-richtext
stepMatch
function · packages/mixins-richtext/src/find.ts:46
function stepMatch(current: number, count: number, step: 1 | -1): numberThe index a step from current lands on among count matches, wrapping at either end, so
Enter keeps cycling through them as a browser's find does.