diff options
| -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); } } |
