summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index d840547..85e1dce 100644
--- a/buffer.c
+++ b/buffer.c
@@ -3471,7 +3471,7 @@ void buffer_render(TextBuffer *buffer, Rect r) {
line_number_color = alt_line_number_color;
}
Rect rect = rect4(x1, y, diagnostic_x2, y + char_height);
- buffer_clip_rect(buffer, &rect);
+ rect_clip_to_rect(&rect, rect4(x1, y1, x2, y2));
gl_geometry_rect(
rect,
color & 0xffffff7f