Commit Graph

4 Commits (a1a2cce23e0a0bea2694fbfc5434a0204328d22c)

Author SHA1 Message Date
Nikita Revenco a1a2cce23e feat: add `:toggle-diagnostics` command to hide diagnostics 2024-12-06 13:42:21 +00: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