fix diagnostic
Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
This commit is contained in:
parent
1ecb2ff30b
commit
66fac38cf8
18 changed files with 60 additions and 56 deletions
|
@ -220,7 +220,7 @@ impl Vim {
|
|||
});
|
||||
});
|
||||
|
||||
if EditorModeSetting::get_global(cx).0 == EditorMode::Helix {
|
||||
if matches!(EditorModeSetting::get_global(cx).0, EditorMode::Helix(_)) {
|
||||
self.switch_mode(Mode::HelixNormal, true, window, cx);
|
||||
} else {
|
||||
self.switch_mode(Mode::Normal, true, window, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue