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

VIM-2773: Include empty lines in the selection when dragging backwards from EOL #604

Merged

Conversation

dominicpalmer
Copy link
Contributor

A fix for an issue I raised on YouTrack.

In Vim, when starting a selection from an empty line and dragging backwards (or vertically upwards), the entirety of the empty line (including the EOL character) should be included as part of the selection. Hence when deleting the block, the empty line should also get removed. IdeaVim didn't adhere to this behaviour. This PR fixes it.

Before:

before

After:

after

@AlexPl292
Copy link
Member

I used to think I caught all mouse-selection related bugs. Thank you for the fix!

@AlexPl292 AlexPl292 merged commit 7ebd604 into JetBrains:master Feb 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants