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

Command line move command throws E488: Trailing characters #7207

Closed
dustypomerleau opened this issue Oct 29, 2021 · 2 comments
Closed

Command line move command throws E488: Trailing characters #7207

dustypomerleau opened this issue Oct 29, 2021 · 2 comments
Labels
Milestone

Comments

@dustypomerleau
Copy link

Thanks for all the time you've put into this extension. Description of the bug is below:

Describe the bug

Attempting to move lines from the command line throws an error.

To Reproduce

Enter any range and destination invoking m, for example:
:22,25m10

Expected behavior

The specified range should be moved to the destination.

Environment:

  • Extension (VsCodeVim) version: 1.21.10
  • VSCode version: 1.61.2
  • OS: macOS 11.6.1 (20G224)

Additional context

Similar commands, such as copying the range with t, work perfectly:
:22,25t10
so perhaps the m command is trimming the input differently?

@J-Fields J-Fields added this to the Backlog milestone Oct 29, 2021
@J-Fields
Copy link
Member

Thanks for the report! I re-wrote most of the parsing from scratch recently - I'm sure lots of these little bugs have been introduced. :move is actually not yet implemented though (I plan on doing that soon; the recent re-write has made filling in these gaps in functionality easier), see #2472. The parser is throwing the wrong error here, should say the command isn't implemented.

@dustypomerleau
Copy link
Author

Ah, my mistake then. Thanks for working on it!

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

No branches or pull requests

2 participants