-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
When you say "chuck line target1 between target2" a single empty line sticks around. #625
Comments
Heyo, taking a look at this one. @RonWalker22 — thanks for submitting the bug. The
I thought that it had something to do with the line below having no characters, but the gif below shows that that even with text, deleting 2 lines preserves the one where the cursor is currently. I need to think about what a good next step would be. This seems to be a delete specific problem, ie. if I were to lines between, I'd want to select only those lines and not any newline characters. However, if I were to want to delete, I think the fix is likely to extend the select to the line below. |
The problem in essence with this is that the delete/chuck command depends on leading and trailing delimiter ranges. These ranges contains the new lines, commas and so on that needs to be removed together with the target. The problem with the between modifier is that it completely discards both the start and end targets and we are now left with just a raw range in between that has no understanding of the new line delimiter that should be discarded. |
@AndreasArvidsson — thanks a bunch for the context. I'm looking through the code and I think the piece you're referencing is here in the Specifically these lines:
Here's a few questions:
|
That's the talon side of it but the issue is in the vscode extension.
|
All lines between target1 and target2 should be removed.
In my gif example below “ace” is
}
.The text was updated successfully, but these errors were encountered: