Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
terminal: Avoid overlapping IME marked text with terminal content (#46227)
ᴀᴍᴛᴏᴀᴇʀ578911de0355
diff --git a/crates/terminal_view/src/terminal_element.rs b/crates/terminal_view/src/terminal_element.rsindex 0a21aecf1ae..1f98c1e61d2 100644--- a/crates/terminal_view/src/terminal_element.rs+++ b/crates/terminal_view/src/terminal_element.rs@@ -1363,6 +1363,14 @@ impl Element for TerminalElement {}],None);++ // Paint background to cover terminal text behind marked text+ let ime_background_bounds = Bounds::new(+ ime_position,+ size(shaped_line.width, layout.dimensions.line_height),+ );+ window.paint_quad(fill(ime_background_bounds, layout.background_color));+shaped_line.paint(ime_position,layout.dimensions.line_height,