summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);