From e00d1426ead5742a91bf3bccae920509ff21acb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:08:38 +0200 Subject: view: rename view_cursor_disposed --- 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 900d3c9..950b2d6 100644 --- 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 index 7a4f006..49bb233 100644 --- 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 index a335f3b..c838ab9 100644 --- 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*); /** -- cgit v1.2.3