mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-03-05 15:32:51 +01:00
Fix broken going to [count] line end.
This commit is contained in:
parent
a47cdb9f35
commit
7bafa0f8c8
@ -26,7 +26,6 @@ import com.maddyhome.idea.vim.action.motion.MotionEditorAction;
|
||||
import com.maddyhome.idea.vim.command.Argument;
|
||||
import com.maddyhome.idea.vim.command.CommandState;
|
||||
import com.maddyhome.idea.vim.handler.MotionEditorActionHandler;
|
||||
import com.maddyhome.idea.vim.helper.EditorHelper;
|
||||
import com.maddyhome.idea.vim.option.BoundStringOption;
|
||||
import com.maddyhome.idea.vim.option.Options;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@ -58,8 +57,7 @@ public class MotionGotoLineLastEndAction extends MotionEditorAction {
|
||||
}
|
||||
}
|
||||
|
||||
return VimPlugin.getMotion().moveCaretGotoLineLastEnd(editor, rawCount, EditorHelper.getLineCount(editor),
|
||||
allow);
|
||||
return VimPlugin.getMotion().moveCaretGotoLineLastEnd(editor, rawCount, count - 1, allow);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user