From 9abc5c5602a0611f8d8dca4fd706bab9aa3e4fa4 Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 10 Sep 2023 14:52:23 -0400 Subject: [PATCH] allow diagnostic messages to take up multiple lines --- buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buffer.c b/buffer.c index ba49fc9..c9ab249 100644 --- a/buffer.c +++ b/buffer.c @@ -3729,6 +3729,8 @@ void buffer_render(TextBuffer *buffer, Rect r) { state.max_x = diagnostic_x2; state.x = diagnostic_x1; state.y = diagnostic_y1; + state.wrap = true; + state.max_y = diagnostic_y1 + 5 * char_height; settings_color_floats(settings, COLOR_TEXT, state.color); text_utf8_with_state(font, &state, hover_diagnostic->message); diagnostic_x2 = minf(diagnostic_x2, (float)state.x_largest);