diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-03-30 13:17:47 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-03-30 14:03:12 +0200 |
| commit | 5f8865e78977c9ca43c3016fa92b79349b2d47cd (patch) | |
| tree | b94729463162eb5d603e770124807a2f54728d3a /view.c | |
| parent | eb7187acd903a8d1b4ed76d1ffe8572ddb078eac (diff) | |
| download | vis-5f8865e78977c9ca43c3016fa92b79349b2d47cd.tar.gz vis-5f8865e78977c9ca43c3016fa92b79349b2d47cd.tar.xz | |
view: constify functions to manipulate selections
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1348,7 +1348,7 @@ Filerange view_cursors_selection_get(Cursor *c) { return view_selections_get(c->sel); } -void view_cursors_selection_set(Cursor *c, Filerange *r) { +void view_cursors_selection_set(Cursor *c, const Filerange *r) { if (!text_range_valid(r)) return; if (!c->sel) @@ -1443,7 +1443,7 @@ Filerange view_selections_get(Selection *s) { return sel; } -void view_selections_set(Selection *s, Filerange *r) { +void view_selections_set(Selection *s, const Filerange *r) { if (!text_range_valid(r)) return; Text *txt = s->view->text; |
