From dc9f1cd879069889e6e3ef2fc6acc35250fe5423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:07:48 +0200 Subject: view: rename view_cursors_dispose --- vis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.c') 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); -- cgit v1.2.3