vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 553938c1ed180918682181a0345ef59607848782 parent 1d2715fdc3966828a7d2fc2aeb8e062b0860e7b0 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 12 Jun 2017 18:18:34 +0200 view: rename view_cursors_selection_swap Diffstat:
| M | main.c | | | 2 | +- |
| M | view.c | | | 2 | +- |
| M | view.h | | | 2 | +- |
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/main.c b/main.c @@ -1661,7 +1661,7 @@ static const char *textobj(Vis *vis, const char *keys, const Arg *arg) { static const char *selection_end(Vis *vis, const char *keys, const Arg *arg) { for (Cursor *c = view_cursors(vis_view(vis)); c; c = view_cursors_next(c)) - view_cursors_selection_swap(c); + view_selections_flip(c); return keys; } diff --git a/view.c b/view.c @@ -1171,7 +1171,7 @@ void view_selection_clear(Cursor *c) { c->view->need_update = true; } -void view_cursors_selection_swap(Cursor *s) { +void view_selections_flip(Cursor *s) { Mark temp = s->anchor; s->anchor = s->cursor; s->cursor = temp; diff --git a/view.h b/view.h @@ -203,7 +203,7 @@ void view_selections_clear_all(View*); * .. note:: Has no effect on singleton selections. * @endrst */ -void view_cursors_selection_swap(Cursor*); +void view_selections_flip(Cursor*); /** * @} * @defgroup view_anchor