Skip to content

Commit

Permalink
allow diagnostic messages to take up multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
pommicket committed Sep 10, 2023
1 parent e0066fa commit 9abc5c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9abc5c5

Please sign in to comment.