vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 0c9cdc799afbe95e9c1994256713206aeadefb11 parent 8789c2742ec6c1127f02b08ab7e6df1324f3e19a Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 19 Nov 2015 23:38:23 +0100 vis: improve <C-p> in visual mode Make sure that the (new) primary cursor is visible after removing the last matched selection. Diffstat:
| M | main.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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; }