Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Give up on monospace indicator
Conrad Irwind4276acab82f
diff --git a/crates/vim/src/mode_indicator.rs b/crates/vim/src/mode_indicator.rsindex 4b1ade7a223..b110c39dc46 100644--- a/crates/vim/src/mode_indicator.rs+++ b/crates/vim/src/mode_indicator.rs@@ -80,15 +80,12 @@ impl View for ModeIndicator {let theme = &theme::current(cx).workspace.status_bar;- // we always choose text to be 12 monospace characters- // so that as the mode indicator changes, the rest of the- // UI stays still.let text = match mode {Mode::Normal => "-- NORMAL --",Mode::Insert => "-- INSERT --",Mode::Visual => "-- VISUAL --",- Mode::VisualLine => "VISUAL LINE",- Mode::VisualBlock => "VISUAL BLOCK",+ Mode::VisualLine => "-- VISUAL LINE --",+ Mode::VisualBlock => "-- VISUAL BLOCK --",};Label::new(text, theme.vim_mode_indicator.text.clone()).contained()