mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Make mode indicator follow vim enabled state
This commit is contained in:
parent
fc9687d163
commit
03bc430bdd
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ impl ModeIndicator {
|
|||
// Vim doesn't exist in some tests
|
||||
let mode = cx
|
||||
.has_global::<Vim>()
|
||||
.then(|| cx.global::<Vim>().state.mode);
|
||||
.then(|| {
|
||||
let vim = cx.global::<Vim>();
|
||||
vim.enabled.then(|| vim.state.mode)
|
||||
})
|
||||
.flatten();
|
||||
|
||||
Self {
|
||||
mode,
|
||||
|
|
Loading…
Reference in a new issue