Skip to content

Commit

Permalink
Allow * and # to be repeated with number prefixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfn committed Jun 21, 2016
1 parent 09555d4 commit d157f24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ class CommandStar extends BaseCommand {
modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine];
keys = ["*"];
isMotion = true;
canBeRepeated = true;

public static GetWordAtPosition(position: Position): string {
const start = position.getWordLeft(true);
Expand Down Expand Up @@ -520,6 +521,7 @@ class CommandHash extends BaseCommand {
modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine];
keys = ["#"];
isMotion = true;
canBeRepeated = true;

public static GetWordAtPosition(position: Position): string {
const start = position.getWordLeft(true);
Expand Down

0 comments on commit d157f24

Please sign in to comment.