diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:16:06 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:42 +0200 |
| commit | c4b4eebff51fcf718457d92848322f7ec20fc139 (patch) | |
| tree | 4dd5f1fac77c247060cf1a52deb3e17ef54de8e7 | |
| parent | 0b3107d8ab2e43cace0a5e45e364e8f760efcb57 (diff) | |
| download | vis-c4b4eebff51fcf718457d92848322f7ec20fc139.tar.gz vis-c4b4eebff51fcf718457d92848322f7ec20fc139.tar.xz | |
view: rename view_selections_clear
| -rw-r--r-- | view.c | 4 | ||||
| -rw-r--r-- | view.h | 2 | ||||
| -rw-r--r-- | vis-modes.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -493,7 +493,7 @@ void view_free(View *view) { void view_reload(View *view, Text *text) { view->text = text; - view_selections_clear(view); + view_selections_clear_all(view); view_cursor_to(view, 0); } @@ -1182,7 +1182,7 @@ bool view_selection_anchored(Selection *s) { return s->anchored; } -void view_selections_clear(View *view) { +void view_selections_clear_all(View *view) { for (Cursor *c = view->cursors; c; c = c->next) view_cursors_selection_clear(c); view_draw(view); @@ -196,7 +196,7 @@ void view_selections_set(Cursor*, const Filerange*); */ void view_cursors_selection_clear(Cursor*); /** Reduce *all* currently active selections. */ -void view_selections_clear(View*); +void view_selections_clear_all(View*); /** * Flip selection orientation. Swap cursor and anchor. * @rst diff --git a/vis-modes.c b/vis-modes.c index 0609022..470c155 100644 --- a/vis-modes.c +++ b/vis-modes.c @@ -202,7 +202,7 @@ static void vis_mode_visual_line_enter(Vis *vis, Mode *old) { static void vis_mode_visual_line_leave(Vis *vis, Mode *new) { if (!new->visual) { window_selection_save(vis->win); - view_selections_clear(vis->win->view); + view_selections_clear_all(vis->win->view); } else { view_cursor_to(vis->win->view, view_cursor_get(vis->win->view)); } @@ -211,7 +211,7 @@ static void vis_mode_visual_line_leave(Vis *vis, Mode *new) { static void vis_mode_visual_leave(Vis *vis, Mode *new) { if (!new->visual) { window_selection_save(vis->win); - view_selections_clear(vis->win->view); + view_selections_clear_all(vis->win->view); } } |
