summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-10 14:52:23 -0400
committerpommicket <pommicket@gmail.com>2023-09-10 14:52:23 -0400
commit9abc5c5602a0611f8d8dca4fd706bab9aa3e4fa4 (patch)
treee3dfe312638b82e2a345eec45651f794226c7ff2
parente0066faf658311c975ef08b05c335ecc2b9ab0a0 (diff)
allow diagnostic messages to take up multiple lines2.6
-rw-r--r--buffer.c2
1 files changed, 2 insertions, 0 deletions
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);