From fcb47fc938ac36e14565e60b9138c59ea9c67658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:30:41 +0200 Subject: view: rename view_selection_anchored --- sam.c | 2 +- view.c | 2 +- view.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sam.c b/sam.c index 0824df4..0becb66 100644 --- a/sam.c +++ b/sam.c @@ -1239,7 +1239,7 @@ enum SamError sam_cmd(Vis *vis, const char *s) { view_selections_primary_set(view_cursors(vis->win->view)); bool completed = true; for (Cursor *c = view_cursors(vis->win->view); c; c = view_selections_next(c)) { - if (view_selection_anchored(c)) { + if (view_selections_anchored(c)) { completed = false; break; } diff --git a/view.c b/view.c index 1b2928e..5c5a574 100644 --- a/view.c +++ b/view.c @@ -1178,7 +1178,7 @@ void view_selections_flip(Cursor *s) { view_cursors_to(s, text_mark_get(s->view->text, s->cursor)); } -bool view_selection_anchored(Selection *s) { +bool view_selections_anchored(Selection *s) { return s->anchored; } diff --git a/view.h b/view.h index d870505..721b01e 100644 --- a/view.h +++ b/view.h @@ -215,7 +215,7 @@ void view_selections_flip(Cursor*); */ void view_selections_anchor(Cursor*); /** Check whether selection is anchored. */ -bool view_selection_anchored(Cursor*); +bool view_selections_anchored(Cursor*); /** Get position of selection cursor. */ /** * @} -- cgit v1.2.3