aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:30:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commitfcb47fc938ac36e14565e60b9138c59ea9c67658 (patch)
tree5bb3b224103f61dbd9c0820bbd2d8f2819c5d99d
parent08d7d23f7d27e253947ecd2bfa6334f0fdbe3ea5 (diff)
downloadvis-fcb47fc938ac36e14565e60b9138c59ea9c67658.tar.gz
vis-fcb47fc938ac36e14565e60b9138c59ea9c67658.tar.xz
view: rename view_selection_anchored
-rw-r--r--sam.c2
-rw-r--r--view.c2
-rw-r--r--view.h2
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. */
/**
* @}