diff options
author | pommicket <pommicket@gmail.com> | 2023-09-10 14:52:23 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-09-10 14:52:23 -0400 |
commit | 9abc5c5602a0611f8d8dca4fd706bab9aa3e4fa4 (patch) | |
tree | e3dfe312638b82e2a345eec45651f794226c7ff2 | |
parent | e0066faf658311c975ef08b05c335ecc2b9ab0a0 (diff) |
allow diagnostic messages to take up multiple lines2.6
-rw-r--r-- | buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |