aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:12:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commita9c3e2c343dd1077fa08371a505ad766dcb81baa (patch)
tree96414e375cbd15b3ca0e80ef51557d2a18fe7a45 /view.c
parent948efb8e624c4488db00ba20ab58652212a091d7 (diff)
downloadvis-a9c3e2c343dd1077fa08371a505ad766dcb81baa.tar.gz
vis-a9c3e2c343dd1077fa08371a505ad766dcb81baa.tar.xz
view: rename view_cursors_primary_{get,set}
Diffstat (limited to 'view.c')
-rw-r--r--view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/view.c b/view.c
index aeebe26..27269c6 100644
--- a/view.c
+++ b/view.c
@@ -1026,7 +1026,7 @@ bool view_selections_dispose(Cursor *c) {
if (!view->cursors || !view->cursors->next)
return false;
view_cursors_free(c);
- view_cursors_primary_set(view->cursor);
+ view_selections_primary_set(view->cursor);
return true;
}
@@ -1052,12 +1052,12 @@ Cursor *view_cursors(View *view) {
return view->cursors;
}
-Cursor *view_cursors_primary_get(View *view) {
+Cursor *view_selections_primary_get(View *view) {
view->cursor_generation++;
return view->cursor;
}
-void view_cursors_primary_set(Cursor *c) {
+void view_selections_primary_set(Cursor *c) {
if (!c)
return;
c->view->cursor = c;