com.maddyhome.idea.vim.group.CommandGroups



API Populatity

1 Client projects

Project: com.maddyhome

Project JetBrains/ideavim in file ...c.com.maddyhome.idea.vim.command.CommandState.java (2014-03-19)
@@ -21,7 +21,6 @@ package com.maddyhome.idea.vim.command;
 import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.editor.Editor;
 import com.maddyhome.idea.vim.VimPlugin;
-import com.maddyhome.idea.vim.group.CommandGroups;
 import com.maddyhome.idea.vim.group.RegisterGroup;
 import com.maddyhome.idea.vim.helper.EditorData;
 import com.maddyhome.idea.vim.key.KeyParser;
@@ -293,7 +292,7 @@ public class CommandState {
    */
   public void saveLastChangeCommand(Command cmd) {
     lastChange = cmd;
-    lastRegister = CommandGroups.getInstance().getRegister().getCurrentRegister();
+    lastRegister = VimPlugin.getRegister().getCurrentRegister();
   }
 
   public boolean isRecording() {
Project JetBrains/ideavim in file ...com.maddyhome.idea.vim.ex.handler.MarkHandler.java (2014-03-19)
@@ -25,7 +25,6 @@ import com.maddyhome.idea.vim.ex.CommandHandler;
 import com.maddyhome.idea.vim.ex.CommandName;
 import com.maddyhome.idea.vim.ex.ExCommand;
 import com.maddyhome.idea.vim.ex.ExException;
-import com.maddyhome.idea.vim.group.CommandGroups;
 import com.maddyhome.idea.vim.helper.EditorHelper;
 import com.maddyhome.idea.vim.helper.MessageHelper;
 import com.maddyhome.idea.vim.helper.Msg;
@@ -48,7 +47,7 @@ public class MarkHandler extends CommandHandler {
     int offset = EditorHelper.getLineStartOffset(editor, line);
 
     if (Character.isLetter(mark) || "'`".indexOf(mark) != -1) {
-      return CommandGroups.getInstance().getMark().setMark(editor, mark, offset);
+      return VimPlugin.getMark().setMark(editor, mark, offset);
     }
     else {
       VimPlugin.showMessage(MessageHelper.message(Msg.E191));
Project JetBrains/ideavim in file ....vim.handler.motion.MotionEditorActionHandler.java (2003-05-04)
@@ -24,6 +24,7 @@ import com.intellij.openapi.editor.Editor;
 import com.maddyhome.idea.vim.command.Argument;
 import com.maddyhome.idea.vim.command.Command;
 import com.maddyhome.idea.vim.group.MotionGroup;
+import com.maddyhome.idea.vim.group.CommandGroups;
 import com.maddyhome.idea.vim.handler.AbstractEditorActionHandler;
 
 /**
@@ -41,6 +42,10 @@ public abstract class MotionEditorActionHandler extends AbstractEditorActionHand
         }
         else if (offset >= 0)
         {
+            if ((cmd.getFlags() & Command.FLAG_SAVE_JUMP) != 0)
+            {
+                CommandGroups.getInstance().getMark().saveJumpLocation(editor, context);
+            }
             MotionGroup.moveCaret(editor, context, offset);
             postMove(editor, context, cmd);