aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-31 14:17:08 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-01-31 14:17:08 +0100
commitef21a35b0797ab272010d86456614458a7667d24 (patch)
tree15cad46fea3445a1e7cb79a893e17bfd34d99008 /view.h
parent8a419b7d67feaa587fe0b0b9c3d0521389a4d5ef (diff)
downloadvis-ef21a35b0797ab272010d86456614458a7667d24.tar.gz
vis-ef21a35b0797ab272010d86456614458a7667d24.tar.xz
view: add back link from selection to corresponding cursor
Can be NULL if no cursor is associated with the given selection (this is currently never the case). Avoids a loop through all cursors when clearing selections.
Diffstat (limited to 'view.h')
-rw-r--r--view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.h b/view.h
index b32df64..4f25588 100644
--- a/view.h
+++ b/view.h
@@ -185,7 +185,7 @@ void view_cursors_selection_restore(Cursor*);
Filerange view_cursors_selection_get(Cursor*);
void view_cursors_selection_set(Cursor*, const Filerange*);
-Selection *view_selections_new(View*);
+Selection *view_selections_new(View*, Cursor*);
void view_selections_free(Selection*);
void view_selections_clear(View*);
void view_selections_swap(Selection*);