From a2790481a6af9a41ec90e4d67c22a449525ecd23 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 26 Mar 2021 17:21:44 +0100 Subject: [PATCH] Pass the right bounds when painting gutter x and y were flipped around, yikes. --- zed/src/editor/buffer_element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zed/src/editor/buffer_element.rs b/zed/src/editor/buffer_element.rs index 0f3e934f4e..fe1b5e71ad 100644 --- a/zed/src/editor/buffer_element.rs +++ b/zed/src/editor/buffer_element.rs @@ -183,7 +183,7 @@ impl BufferElement { ix as f32 * line_height - (scroll_top % line_height), ); line.paint( - RectF::new(line_origin, vec2f(line_height, line.width)), + RectF::new(line_origin, vec2f(line.width, line_height)), &[(0..line.len, ColorU::black())], ctx, );