The text of line without its line break. It points into the buffer when the line sits in one
piece and is a temporary copy otherwise; either way it is valid only until the next edit.
buffer: Text_Buffer;
defer free_buffer(*buffer);
set_text(*buffer, "first\nsecond");
assert(line_text(*buffer, 1) == "second");line_text :: (buffer: *Text_Buffer, line: int) -> string
Parameters
- buffer: *Text_Buffer
- line: int
Returns
- string