summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-13 23:11:15 -0400
committerpommicket <pommicket@gmail.com>2023-09-14 10:47:51 -0400
commit52015e0c9a4e3bc8dc558929a85461f079dda303 (patch)
treebfdf9bda87934dbd96d4da1e87454d22184545b7 /buffer.c
parente33379bab95031555ed5459ee8a73672f24fd0a0 (diff)
batch write requests, fix tiny memory leak in ide-autocomplete
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