aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:08:38 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commite00d1426ead5742a91bf3bccae920509ff21acb0 (patch)
tree9162319b7436e90aa50fd5e7ab7e6785c44c96a7
parentdc9f1cd879069889e6e3ef2fc6acc35250fe5423 (diff)
downloadvis-e00d1426ead5742a91bf3bccae920509ff21acb0.tar.gz
vis-e00d1426ead5742a91bf3bccae920509ff21acb0.tar.xz
view: rename view_cursor_disposed
-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 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*);
/**