diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:07:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:42 +0200 |
| commit | dc9f1cd879069889e6e3ef2fc6acc35250fe5423 (patch) | |
| tree | f664c7f837b0e62c176dc849481789376b7ea03a /vis.c | |
| parent | e7717eb977142b6cb3b05e04c8623d39b7bac102 (diff) | |
| download | vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.gz vis-dc9f1cd879069889e6e3ef2fc6acc35250fe5423.tar.xz | |
view: rename view_cursors_dispose
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
