TextIter.setLine

Moves iterator @iter to the start of the line @line_number. If @line_number is negative or larger than the number of lines in the buffer, moves @iter to the start of the last line in the buffer.

class TextIter
void
setLine

Parameters

lineNumber int

line number (counted from 0)

Meta