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

Visual mode issue with long lines #186

Open
ghost opened this issue Sep 4, 2013 · 0 comments
Open

Visual mode issue with long lines #186

ghost opened this issue Sep 4, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 4, 2013

I have noticed a small bug when hitting CTRL-V and selecting multiple lines. Let's consider the following file:

Lorem
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vitae libero tincidunt, sagittis lacus eget, luctus lacus. Vestibulum ut sapien nibh. Sed metus lectus, convallis vel malesuada non, rutrum nec magna. Quisque velit nulla, tincidunt at dui et, feugiat varius urna. Duis tincidunt, risus nec aliquam pellentesque, nunc purus dapibus sem, eu egestas orci diam eget quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nullam odio erat, tempus sed ornare quis, sodales id eros. Sed nec nisi luctus, sollicitudin lacus blandit, iaculis sem.
Ipsum

When I'm at line 1 and I hit CTRL-V and I go down with j till Ipsum, if I try to go up again with k I get stuck at line 2. I suppose this comes from the length of line 2 because if I replace all of it by a mere word then the problem doesn't happen. On GitHub line 2 is not wrapped but in my editor it is, would this be why the editor gets stuck? There seems to be a confusion between actual lines and wrapped lines.

The problem is the same with versions 2 and 3. How could I fix it?

Thanks!

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

0 participants