Closed GoogleCodeExporter closed 9 years ago
This is intentional. It's no just about multiple lines, it's about nesting.
Consider
1. if (
2. a &&
3. (b || c) &&
4. d)
If you place the cursor at the beginning of line 3, vab will select text on all
four lines, because the cursor is immediately inside the parenthesis block
starting at line 1 and ending at line 4. If your suggestion is implemented,
only "(b || c)" on line 3 would be selected. This would break things in
annoying and unexpected ways for things like =ab in C code.
Original comment by fritzoph...@gmail.com
on 8 Mar 2013 at 6:11
Gotcha. I guess I'm not acquainted with the internals of how textobjects work,
so I didn't think about how it might break other features. Thanks for the
info, feel free to close :)
Original comment by randomen...@gmail.com
on 8 Mar 2013 at 11:41
Original comment by lech.lor...@gmail.com
on 9 Mar 2013 at 12:43
Original issue reported on code.google.com by
randomen...@gmail.com
on 8 Mar 2013 at 5:25