-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
md
deletes the wrong character on the right-hand side
#543
Comments
Yes, this is a known issue on the implementation. I think kakoune might have the same issue, vim probably have a better implementation for this. cc @sudormrfbin |
Some of the text objects are broken too, probably a bug after the #376 cleanup. I'll see if I can fix it. |
@sudormrfbin Sorry to (maybe?) snipe you on this. I was pretty sure I knew what was wrong. Should be fixed in #545. What are the other text objects that are broken? |
@cessen Thanks for fixing it :) Around word is the only text object I noticed to be broken; it selects an extra white space on the side it's not supposed to: // cursor anywhere on "text" and then `maw`
// expected:
some [text ]here
// current:
some[ text ]here |
@sudormrfbin Okay, cool, I'll fix that too. Thanks! |
Fix for word selection: #546 |
I think our tests should use |
Reproduction steps
This is (some) text.
md(
ormd)
.This is some)text.
. The left parenthesis was deleted, but the space to the right of the right parenthesis was deleted instead of the parenthesis itself. Likewise, any usage ofmd
deletes the character to the right of the character it should delete on the right-hand side.The text was updated successfully, but these errors were encountered: