vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 11c25805eb164b5ffa35e7045e54286a45249d14 parent 7601780e34e3fac9f26aee4f7f37a62a62b15ae6 Author: Miles Canfield <miles.a.canfield@gmail.com> Date: Tue, 20 Oct 2020 17:17:30 -0600 Limit to lines within range for inner text objects Diffstat:
| M | vis.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vis.c b/vis.c @@ -976,6 +976,9 @@ void vis_do(Vis *vis) { if (a->textobj->type & TEXTOBJECT_DELIMITED_OUTER) { r.start--; r.end++; + } else if (linewise && (a->textobj->type & TEXTOBJECT_DELIMITED_INNER)) { + r.start = text_line_next(txt, r.start); + r.end = text_line_prev(txt, r.end); } if (vis->mode->visual || (i > 0 && !(a->textobj->type & TEXTOBJECT_NON_CONTIGUOUS)))