From 11d7a0e6a505a3cc9c1a8fedf9e8101059d96701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 14 Jun 2017 14:45:56 +0200 Subject: view: disallow setting of invalid selections --- view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.h') diff --git a/view.h b/view.h index 677824a..dd5f879 100644 --- a/view.h +++ b/view.h @@ -188,7 +188,7 @@ Selection *view_selections_column_next(Selection*, int column); /** Get an inclusive range of the selection cover. */ Filerange view_selections_get(Selection*); /** Set selection cover. Updates both cursor and anchor. */ -void view_selections_set(Selection*, const Filerange*); +bool view_selections_set(Selection*, const Filerange*); /** * Reduce selection to character currently covered by the cursor. * @rst -- cgit v1.2.3