From d3fe7d9cfc737b5f9a060a38a4bbd9b92cf43b0c Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 19 Feb 2026 01:18:20 +0200 Subject: [PATCH] Revert the gutter width limitation for multi buffers (#49536) Follow-up of https://github.com/zed-industries/zed/pull/49374 This looks really bad when Zed zooms in and then out. - N/A --- crates/editor/src/element.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index faf6b6ddf3cdf2cd7432a79374ea792dd08f410e..3ae4713ee4ce337b0d535a89da4c1246a024f6ad 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -9556,13 +9556,8 @@ impl Element for EditorElement { let em_layout_width = window.text_system().em_layout_width(font_id, font_size); let glyph_grid_cell = size(em_advance, line_height); - let mut gutter_dimensions = + let gutter_dimensions = snapshot.gutter_dimensions(font_id, font_size, style, window, cx); - // Reduce flickering and rewraps when new excerpts are added and removed. - if !is_singleton { - let prev_width = self.editor.read(cx).gutter_dimensions.width; - gutter_dimensions.width = gutter_dimensions.width.max(prev_width); - } let text_width = bounds.size.width - gutter_dimensions.width; let settings = EditorSettings::get_global(cx);