From b8238266e4c6961fbdcc635a86809b5687db99da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:18:34 +0200 Subject: view: rename view_cursors_selection_swap --- main.c | 2 +- view.c | 2 +- view.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index ab3016a..2a51458 100644 --- 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 index d003da7..f6e148e 100644 --- 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 index 7a6aa90..3ba2111 100644 --- 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 -- cgit v1.2.3