mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 17:21:40 +03:00
Give up on monospace indicator
Changing mode almost always introduces the (1 selected) text in the status bar, so we may as well also keep the --'s for block and line mode.
This commit is contained in:
parent
243d1664e5
commit
d4276acab8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user