From 845dc34aa45a95a9157e487ca9f4ebe389dd6303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 18 Jan 2016 21:12:26 +0100 Subject: 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 --- vis-modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-modes.c') diff --git a/vis-modes.c b/vis-modes.c index 21bef53..8b99663 100644 --- 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) { -- cgit v1.2.3