aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:07:48 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commitdc9f1cd879069889e6e3ef2fc6acc35250fe5423 (patch)
treef664c7f837b0e62c176dc849481789376b7ea03a /main.c
parente7717eb977142b6cb3b05e04c8623d39b7bac102 (diff)
downloadvis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.gz
vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.xz
view: rename view_cursors_dispose
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index b69e321..a42864e 100644
--- a/main.c
+++ b/main.c
@@ -1405,13 +1405,13 @@ static const char *cursors_select_skip(Vis *vis, const char *keys, const Arg *ar
Cursor *cursor = view_cursors_primary_get(view);
keys = cursors_select_next(vis, keys, arg);
if (cursor != view_cursors_primary_get(view))
- view_cursors_dispose(cursor);
+ view_selections_dispose(cursor);
return keys;
}
static const char *cursors_remove(Vis *vis, const char *keys, const Arg *arg) {
View *view = vis_view(vis);
- view_cursors_dispose(view_cursors_primary_get(view));
+ view_selections_dispose(view_cursors_primary_get(view));
view_cursor_to(view, view_cursor_get(view));
return keys;
}
@@ -1429,7 +1429,7 @@ static const char *cursors_remove_column(Vis *vis, const char *keys, const Arg *
for (Cursor *c = view_cursors_column(view, column), *next; c; c = next) {
next = view_cursors_column_next(c, column);
- view_cursors_dispose(c);
+ view_selections_dispose(c);
}
vis_count_set(vis, VIS_COUNT_UNKNOWN);
@@ -1454,7 +1454,7 @@ static const char *cursors_remove_column_except(Vis *vis, const char *keys, cons
if (cur == col)
col = view_cursors_column_next(col, column);
else
- view_cursors_dispose(cur);
+ view_selections_dispose(cur);
}
vis_count_set(vis, VIS_COUNT_UNKNOWN);
@@ -1567,7 +1567,7 @@ static const char *selections_trim(Vis *vis, const char *keys, const Arg *arg) {
&& isspace((unsigned char)b); sel.start++);
if (sel.start < sel.end) {
view_cursors_selection_set(c, &sel);
- } else if (!view_cursors_dispose(c)) {
+ } else if (!view_selections_dispose(c)) {
vis_mode_switch(vis, VIS_MODE_NORMAL);
}
}