Skip to content

Commit

Permalink
Add OperatorPendingMode to new textObject argument
Browse files Browse the repository at this point in the history
  • Loading branch information
berknam committed Jul 9, 2020
1 parent 5551ec8 commit 0966303
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/actions/textobject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ class InsideIndentObjectBoth extends IndentObjectMatch {
}

abstract class SelectArgument extends TextObjectMovement {
modes = [Mode.Normal, Mode.Visual];
modes = [Mode.Normal, Mode.OperatorPendingMode, Mode.Visual];

private static openingDelimiterCharacters(): string[] {
return configuration.argumentObjectOpeningDelimiters;
Expand Down Expand Up @@ -898,13 +898,11 @@ abstract class SelectArgument extends TextObjectMovement {

@RegisterAction
export class SelectInnerArgument extends SelectArgument {
modes = [Mode.Normal, Mode.Visual];
keys = ['i', 'a'];
}

@RegisterAction
export class SelectAroundArgument extends SelectArgument {
modes = [Mode.Normal, Mode.Visual];
keys = ['a', 'a'];
selectAround = true;
}

0 comments on commit 0966303

Please sign in to comment.