-
Notifications
You must be signed in to change notification settings - Fork 56
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
ia
doesn't handle nested braces when arguments are put each on it's own line
#273
Comments
Just an observation that such an example works as expected if you put the cursor on
|
That's because it's working on the empty argument inside of |
Thanks for the explanation. I would say that this behavior is misleading and I would rather prefer the one I suggested. But even if we assume that the current one is the correct behavior then the behavior is inconsistent. In case of one line call:
it selects |
The issue seems to be that the argument text object prioritizes to seek over using the current cursor position, but only if the argument list is spread over multiple lines. This is definitely inconsistent with other text objects. If you compare it to the pairs text object:
If your cursor is on the "b" in "bar" and you press
If the pairs text object acted like the argument text object here, it would instead select:
|
Put the cursor on
bar
and typevIa
Expected:
Actual: nothing is selected
The text was updated successfully, but these errors were encountered: