-
Notifications
You must be signed in to change notification settings - Fork 21
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
Move behaves different than Delete #75
Comments
You're right this is a bug. I've reproduced this. Apparently, when vim does a motion over a multi-line block, if nothing else is on the line, then it selects the EOL character as well. |
No vim doesn't do that, select a line in visual mode since beginning to the end excluding eol, then press d, it won't remove the eol and there'll be an empty line afterwards. It seems to be more complicated. |
It seems to happen only for |
What about something like daw that is multi-line other than dat? |
something like this:
then you can try |
What does |
can we replace these lines:
with these:
and fix registers in (some other lines)? |
That code you're looking at is not the issue. That's executed in visual mode. If you want to take a look see |
I see so maybe we can change these lines in
to
and then fix the registers. what do you think? |
Pretty sure vimscript doesn't work like that. Nothing is selected, you have to reselect in that function using gv I have an idea though that might work, one minute |
This seems to work but there's probably some edge case where it breaks
|
You're right, vimscript doesn't work that way. unfortunately I can't follow it up with you cause I don't understand this code unless you describe it to me (or maybe just the idea behind it and why it may break in edge cases). If you need me to try it for few days just let me know. |
Yeah, I was thinking we could both try it for a few days and just keep an eye out for incorrect behaviour |
Sure, will inform you if I find anything. |
OK now I got what you're trying to do, I think Another issue I found is that |
A modified version of your code is working for me:
Notice these two lines in the begining:
I replaced |
Thanks for following up on this. I've merged this change, but I'll leave this item open since we need to do the same fix to the |
Suppose that this is the situation:
when double pipe shows my curser position. If I type
mat
in normal mode I getbut if I run
dat
I'll get:mat
is behaving likevatd
notdat
.The text was updated successfully, but these errors were encountered: