diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-31 14:17:08 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-31 14:17:08 +0100 |
| commit | ef21a35b0797ab272010d86456614458a7667d24 (patch) | |
| tree | 15cad46fea3445a1e7cb79a893e17bfd34d99008 /view.h | |
| parent | 8a419b7d67feaa587fe0b0b9c3d0521389a4d5ef (diff) | |
| download | vis-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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*); |
