vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 1a7a93e3b659e5c76473c3208690bed608e05b8e parent 4954340e01b9f6d7054d37b8999974011c5b98e4 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 12 Jun 2017 18:08:38 +0200 view: rename view_cursor_disposed Diffstat:
| M | sam.c | | | 2 | +- |
| M | view.c | | | 2 | +- |
| M | view.h | | | 2 | +- |
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sam.c b/sam.c @@ -1234,7 +1234,7 @@ enum SamError sam_cmd(Vis *vis, const char *s) { } if (vis->win) { - if (primary_pos != EPOS && view_cursor_disposed(vis->win->view)) + if (primary_pos != EPOS && view_selection_disposed(vis->win->view)) view_cursor_to(vis->win->view, primary_pos); view_cursors_primary_set(view_cursors(vis->win->view)); bool completed = true; diff --git a/view.c b/view.c @@ -1041,7 +1041,7 @@ bool view_selections_dispose_force(Cursor *c) { return true; } -Cursor *view_cursor_disposed(View *view) { +Cursor *view_selection_disposed(View *view) { Cursor *c = view->cursor_dead; view->cursor_dead = NULL; return c; diff --git a/view.h b/view.h @@ -135,7 +135,7 @@ bool view_selections_dispose_force(Cursor*); * If the primary selection was marked for destruction, return it and * clear descruction flag. */ -Cursor *view_cursor_disposed(View*); +Cursor *view_selection_disposed(View*); /** Dispose all but the primary selection. */ void view_cursors_clear(View*); /**