MCPcopy
hub / github.com/VSCodeVim/Vim / getCurrentMatchRelativeIndex

Method getCurrentMatchRelativeIndex

src/cmd_line/commandLine.ts:426–429  ·  view source on GitHub ↗

* @returns the index of the current match, relative to the next match.

(vimState: VimState)

Source from the content-addressed store, hash-verified

424 * @returns the index of the current match, relative to the next match.
425 */
426 private getCurrentMatchRelativeIndex(vimState: VimState): number {
427 const count = vimState.recordedState.count || 1;
428 return count - 1 + this.currentMatchDisplacement * count;
429 }
430
431 /**
432 * @returns The start of the current match range (after applying the search offset) and its rank in the document's matches

Callers 2

getCurrentMatchRangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected