Commit Graph

4 Commits (9f34b62a1eb4fcab1d8859756f89a0b8e030efab)

Author SHA1 Message Date
Rolo 9f34b62a1e feat: add support for basic icons 2025-07-24 20:55:57 -07:00
Ian Hobson 4c8175ca04 Draw each message line separately in `draw_eol_diagnostic`
`set_string_truncated` renders the entire string while ignoring
newlines, so if the diagnostic's message contains multiple lines it
produces messages like 'first linesecond line'.

To avoid these run-ons, this commit renders each line separately,
inserting double spaces for disambiguation.
2024-12-04 18:23:30 -06:00
rhogenson 73deabaa40
Fix panic when drawing at the edge of the screen. (#11737)
When pressing tab at the edge of the screen, Helix panics in debug mode
subtracting position.col - self.offset.col.

To correctly account for graphemes that are partially visible,
column_in_bounds takes a width and returns whether the whole range is
in bounds.

Co-authored-by: Rose Hogenson <rosehogenson@posteo.net>
2024-09-23 02:17:02 +09:00
Pascal Kuthe 6d051d7084
render diagnostic inline 2024-07-15 16:35:30 +02:00