aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-18 21:12:26 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-18 21:37:21 +0100
commit845dc34aa45a95a9157e487ca9f4ebe389dd6303 (patch)
tree7200bbe1140de873d1c9059332b814ccd91d400b
parent6a015289b3cebe7d64c5aa14c3635349b053d07a (diff)
downloadvis-845dc34aa45a95a9157e487ca9f4ebe389dd6303.tar.gz
vis-845dc34aa45a95a9157e487ca9f4ebe389dd6303.tar.xz
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
-rw-r--r--vis-modes.c2
1 files changed, 1 insertions, 1 deletions
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) {