1
0
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:
Oleg Shpynov 2011-03-15 16:54:20 +03:00
parent d859e67ba5
commit 9c8a7c642c
2 changed files with 2 additions and 2 deletions
src/com/maddyhome/idea/vim

View File

@ -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);

View File

@ -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());