aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:17:15 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commitd721c953a5e4ff1e456d35c82e5a65d511955561 (patch)
treec654e0dd4b227baf54602dcc58b79c5ac645eff1 /view.c
parentc4b4eebff51fcf718457d92848322f7ec20fc139 (diff)
downloadvis-d721c953a5e4ff1e456d35c82e5a65d511955561.tar.gz
vis-d721c953a5e4ff1e456d35c82e5a65d511955561.tar.xz
view: rename view_cursors_selection_clear
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 6c67c05..d003da7 100644
--- a/view.c
+++ b/view.c
@@ -1036,7 +1036,7 @@ bool view_selections_dispose_force(Cursor *c) {
View *view = c->view;
if (view->cursor_dead)
return false;
- view_cursors_selection_clear(c);
+ view_selection_clear(c);
view->cursor_dead = c;
return true;
}
@@ -1165,7 +1165,7 @@ void view_cursors_selection_start(Cursor *c) {
c->anchored = true;
}
-void view_cursors_selection_clear(Cursor *c) {
+void view_selection_clear(Cursor *c) {
c->anchored = false;
c->anchor = c->cursor;
c->view->need_update = true;
@@ -1184,7 +1184,7 @@ bool view_selection_anchored(Selection *s) {
void view_selections_clear_all(View *view) {
for (Cursor *c = view->cursors; c; c = c->next)
- view_cursors_selection_clear(c);
+ view_selection_clear(c);
view_draw(view);
}