vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit c063983d5b39515e531309fbb9cdd49f4b4a3400
parent 917bd1be460bacd57c3985a80a9dac4d64dfc6c1
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 12 Jun 2017 18:30:41 +0200

view: rename view_selection_anchored

Diffstat:
Msam.c | 2+-
Mview.c | 2+-
Mview.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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. */ /** * @}