Files
serena/test/solidlsp
AmirF194 cb38f6f82a fix(editing): delete last line of a file without a trailing newline
delete_lines/replace_lines address the position one line past the last line
(line == number of lines, col 0). get_index_from_line_col cannot resolve that
position when the file has no trailing newline (no closing newline to count),
so delete_text_between_positions raised InvalidTextLocationError and the delete
crashed on a very common file shape.

Clamp that past-EOF end position to end-of-file in delete_text_between_positions,
mirroring the guard insert_text_at_position already has. A file with no trailing
newline now deletes its last line identically to one with a trailing newline.

Adds TextUtils unit tests and a CHANGELOG entry.
2026-07-15 20:22:25 +02:00
..
2026-06-28 14:46:27 +02:00
2026-06-29 12:26:07 +02:00
2026-06-29 11:25:39 +02:00