aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-14 14:45:56 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit11d7a0e6a505a3cc9c1a8fedf9e8101059d96701 (patch)
tree45a50034c9b4359c53a80d73ee4a4d7a755f4a97 /view.h
parent4051804901e15ecbf0a1588c845dad740e5f3141 (diff)
downloadvis-11d7a0e6a505a3cc9c1a8fedf9e8101059d96701.tar.gz
vis-11d7a0e6a505a3cc9c1a8fedf9e8101059d96701.tar.xz
view: disallow setting of invalid 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 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