From 9bf0e704d094bfa9c82ddb45aa7797014832469e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 19 Nov 2015 23:38:23 +0100 Subject: [PATCH] vis: improve in visual mode Make sure that the (new) primary cursor is visible after removing the last matched selection. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index fc3877a..233b763 100644 --- a/main.c +++ b/main.c @@ -1188,6 +1188,7 @@ static const char *cursors_select_skip(Vis *vis, const char *keys, const Arg *ar static const char *cursors_remove(Vis *vis, const char *keys, const Arg *arg) { View *view = vis_view(vis); view_cursors_dispose(view_cursor(view)); + view_cursor_to(view, view_cursor_get(view)); return keys; } -- 2.11.4.GIT