aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
-rw-r--r--view.c2
-rw-r--r--view.h2
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