mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 08:54:04 +00:00
Make mode indicator follow vim enabled state (#2802)
There was a minor visual bug introduced in https://github.com/zed-industries/zed/pull/2801, this PR corrects it. Release Notes: - N/A
This commit is contained in:
parent
4091a2004e
commit
286d302273
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ impl ModeIndicator {
|
||||||
// Vim doesn't exist in some tests
|
// Vim doesn't exist in some tests
|
||||||
let mode = cx
|
let mode = cx
|
||||||
.has_global::<Vim>()
|
.has_global::<Vim>()
|
||||||
.then(|| cx.global::<Vim>().state.mode);
|
.then(|| {
|
||||||
|
let vim = cx.global::<Vim>();
|
||||||
|
vim.enabled.then(|| vim.state.mode)
|
||||||
|
})
|
||||||
|
.flatten();
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
mode,
|
mode,
|
||||||
|
|
Loading…
Reference in a new issue