Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[p, [p, gp and gP #412

Merged
merged 3 commits into from
Jul 13, 2016
Merged

[p, [p, gp and gP #412

merged 3 commits into from
Jul 13, 2016

Conversation

rebornix
Copy link
Member

@rebornix rebornix commented Jul 8, 2016

Yay! We love PRs! 🎊

Please include a description of your change & check your PR against this list, thanks:

  • Commit message has a short title & issue references
  • Commits are squashed
  • It builds and tests pass (e.g gulp tslint)
  1. Fix p/P cursor position is wrong #407.
  2. Support [p, [p, gp and gP and have all features covered with test cases.

@@ -107,5 +107,54 @@ export class TextEditor {
static isLastLine(position : vscode.Position): boolean {
return position.line === (vscode.window.activeTextEditor.document.lineCount - 1);
}

static getLeftIndentation(line: string): number {
Copy link
Member

@johnfn johnfn Jul 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just name this getIndentationLevel

@rebornix
Copy link
Member Author

Adjust the code except the findFirstNonWhitespace, not quire sure what's the best place to put it yet.

@johnfn johnfn merged commit 1a8533c into VSCodeVim:master Jul 13, 2016
@johnfn
Copy link
Member

johnfn commented Jul 13, 2016

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants