The [start, end] source indices spanning the visual line that contains index — start is the line's first character, end is the caret position at the end of its visible text (before any newline). Useful for Home/End caret movement.
[start, end]
index
start
end
The
[start, end]source indices spanning the visual line that containsindex—startis the line's first character,endis the caret position at the end of its visible text (before any newline). Useful for Home/End caret movement.