From 532f52e9e52b98dc5749396f7353295418e0227a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 9 Apr 2016 11:48:24 +0200 Subject: vis: make j an inclusive motion Given the following text with no trailing new line at the end of line2, where # denotes the cursor position: #ine1 of text line2 of text the command yjp should produce line1 of text #ine1 of text line2 of text line2 of text where previously it would wrongly result in line1 of text #ine1 of text line2 of text --- vis-motions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vis-motions.c b/vis-motions.c index df8c1fe..b42f153 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -331,7 +331,7 @@ err: const Movement vis_motions[] = { [VIS_MOVE_LINE_UP] = { .cur = view_line_up, .type = LINEWISE }, - [VIS_MOVE_LINE_DOWN] = { .cur = view_line_down, .type = LINEWISE }, + [VIS_MOVE_LINE_DOWN] = { .cur = view_line_down, .type = LINEWISE|INCLUSIVE }, [VIS_MOVE_SCREEN_LINE_UP] = { .cur = view_screenline_up, }, [VIS_MOVE_SCREEN_LINE_DOWN] = { .cur = view_screenline_down, }, [VIS_MOVE_SCREEN_LINE_BEGIN] = { .cur = view_screenline_begin, .type = CHARWISE }, -- cgit v1.2.3