From ef21a35b0797ab272010d86456614458a7667d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 31 Jan 2017 14:17:08 +0100 Subject: 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. --- view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.h') 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*); -- cgit v1.2.3