Function LineGetter.tabCompleteStartPoint

Override this to provide a different tab competition starting point. The default is 0, always completing the complete line, but you may return the index of another character of candidate to provide a new split.

ulong tabCompleteStartPoint(
  in const(dchar[]) candidate,
  in const(dchar[]) afterCursor
);

Both candidate and afterCursor may have private data packed into the dchar bits if you enabled [enableAutoCloseBrackets]. Use ch & ~PRIVATE_BITS_MASK to get standard dchars.

Returns

The index of candidate where we should start the slice to keep in [tabComplete]. It must be >= 0 && <= candidate.length.

History

Added on February 1, 2020. Initial default is to return 0 to maintain old behavior.