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

Reformatting long lines with "gq" should reset horizontal scroll #1252

Closed
liquiddandruff opened this issue Jan 27, 2017 · 0 comments
Closed

Comments

@liquiddandruff
Copy link

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

The viewport is horizontally scrolled to the right due to the cursor being on a long line, and the line is formatted with gq.

What did you expect to happen?

The text should be formatted, and the horizontal scroll should be reset so the viewport sees column 0.

What happened instead?

The text is formatted, but the viewport's left bound is on the cursor position instead of column 0. This often causes the viewport's left bound to rest in the middle of the formatted block, forcing the user to press $ to see the complete text block.

Technical details:

  • VSCode Version: 1.8.1
  • VsCodeVim Version: 0.5.2
  • OS: Windows 10
cobbweb pushed a commit to cobbweb/Vim that referenced this issue May 3, 2017
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

No branches or pull requests

1 participant