mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-02-28 02:45:59 +01:00
Fixed keymap switching
This commit is contained in:
parent
d859e67ba5
commit
9c8a7c642c
src/com/maddyhome/idea/vim
@ -84,7 +84,7 @@ public class VimKeyMapUtil {
|
||||
if (keymapName2Enable.isEmpty()){
|
||||
return;
|
||||
}
|
||||
if (keymapName2Enable.equals(manager.getActiveKeymap())){
|
||||
if (keymapName2Enable.equals(manager.getActiveKeymap().getName())){
|
||||
return;
|
||||
}
|
||||
LOG.debug("Enabling keymap:" + keymapName2Enable);
|
||||
|
@ -210,7 +210,7 @@ public class VimPlugin implements ApplicationComponent, PersistentStateComponent
|
||||
*/
|
||||
public void disposeComponent() {
|
||||
LOG.debug("disposeComponent");
|
||||
setEnabled(false);
|
||||
turnOffPlugin();
|
||||
EditorActionManager manager = EditorActionManager.getInstance();
|
||||
TypedAction action = manager.getTypedAction();
|
||||
action.setupHandler(vimHandler.getOriginalTypedHandler());
|
||||
|
Loading…
Reference in New Issue
Block a user