vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 39ee47be9334ae56ffcd167465e58f3b9c3bad63 parent 408c6c18f6ede2d19180d8c44dfea24cb77ebaa9 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 18 Jan 2016 21:12:26 +0100 vis: do not move cursor when entering visual line mode Switching to character wise visual mode is still different than in vim because we do not distinguish between line wise and charwise selections. Close #149 Diffstat:
| M | vis-modes.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis-modes.c b/vis-modes.c @@ -75,7 +75,7 @@ static void vis_mode_visual_line_enter(Vis *vis, Mode *old) { for (Cursor *c = view_cursors(vis->win->view); c; c = view_cursors_next(c)) view_cursors_selection_start(c); } - vis_motion(vis, VIS_MOVE_LINE_END); + vis_motion(vis, VIS_MOVE_NOP); } static void vis_mode_visual_line_leave(Vis *vis, Mode *new) {