From 3d160a6e263717728d4dc18f554b0b7c19cb4ae8 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Wed, 16 Jul 2025 09:10:51 -0400 Subject: [PATCH] Don't highlight partial indent guide backgrounds (#34433) Closes https://github.com/zed-industries/zed/issues/33665 Previously if a line was indented something that was not a multiple of `tab_size` with `"ident_guides": { "background_coloring": "indent_aware" } }` the background of characters would be highlighted. E.g. indent of 6 with tab_size 4. | Before / After | | - | | Screenshot 2025-07-14 at 14 43 46 | Screenshot 2025-07-14 at 14 43 09 | CC: @bennetbo Any idea why this partial indent was enabled in your initial implementation [here](https://github.com/zed-industries/zed/pull/11503/files#diff-1781b7848dd9630f3c4f62df322c08af9a2de74af736e7eba031ebaeb4a0e2f4R3156-R3160)? This looks to be intentional. Release Notes: - N/A --- crates/multi_buffer/src/multi_buffer.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/multi_buffer/src/multi_buffer.rs b/crates/multi_buffer/src/multi_buffer.rs index e22fdb1ed5..2cc8ea59ab 100644 --- a/crates/multi_buffer/src/multi_buffer.rs +++ b/crates/multi_buffer/src/multi_buffer.rs @@ -5905,7 +5905,6 @@ impl MultiBufferSnapshot { let depth = if found_indent { line_indent.len(tab_size) / tab_size - + ((line_indent.len(tab_size) % tab_size) > 0) as u32 } else { 0 };