aboutsummaryrefslogtreecommitdiff
path: root/vis.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 /vis.c
parente7717eb977142b6cb3b05e04c8623d39b7bac102 (diff)
downloadvis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.gz
vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.xz
view: rename view_cursors_dispose
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index ccb61ed..58ca997 100644
--- a/vis.c
+++ b/vis.c
@@ -852,7 +852,7 @@ void vis_do(Vis *vis) {
size_t pos = view_cursors_pos(cursor);
if (pos == EPOS) {
- if (!view_cursors_dispose(cursor))
+ if (!view_selections_dispose(cursor))
view_cursors_to(cursor, 0);
continue;
}
@@ -977,7 +977,7 @@ void vis_do(Vis *vis) {
if (a->op) {
size_t pos = a->op->func(vis, txt, &c);
if (pos == EPOS) {
- view_cursors_dispose(cursor);
+ view_selections_dispose(cursor);
} else if (pos <= text_size(txt)) {
if (vis->mode->visual)
view_cursors_selection_save(cursor);