The OpenD Programming Language

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.

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.
class LineGetter
protected
size_t
tabCompleteStartPoint
(
in dchar[] candidate
,
in dchar[] afterCursor
)

Return Value

Type: size_t

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

Meta

History

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