aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-30 13:17:47 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-03-30 14:03:12 +0200
commit5f8865e78977c9ca43c3016fa92b79349b2d47cd (patch)
treeb94729463162eb5d603e770124807a2f54728d3a /view.h
parenteb7187acd903a8d1b4ed76d1ffe8572ddb078eac (diff)
downloadvis-5f8865e78977c9ca43c3016fa92b79349b2d47cd.tar.gz
vis-5f8865e78977c9ca43c3016fa92b79349b2d47cd.tar.xz
view: constify functions to manipulate selections
Diffstat (limited to 'view.h')
-rw-r--r--view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/view.h b/view.h
index 6447032..3a89206 100644
--- a/view.h
+++ b/view.h
@@ -166,7 +166,7 @@ void view_cursors_selection_sync(Cursor*);
void view_cursors_selection_restore(Cursor*);
/* get/set the selected region associated with this cursor */
Filerange view_cursors_selection_get(Cursor*);
-void view_cursors_selection_set(Cursor*, Filerange*);
+void view_cursors_selection_set(Cursor*, const Filerange*);
Selection *view_selections_new(View*);
void view_selections_free(Selection*);
@@ -176,7 +176,7 @@ Selection *view_selections(View*);
Selection *view_selections_prev(Selection*);
Selection *view_selections_next(Selection*);
Filerange view_selections_get(Selection*);
-void view_selections_set(Selection*, Filerange*);
+void view_selections_set(Selection*, const Filerange*);
Text *view_text(View*);
/* get number of columns, that is maximal number of cursors on a line */