aboutsummaryrefslogtreecommitdiff
path: root/vis-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-09 11:48:24 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-09 12:08:42 +0200
commit532f52e9e52b98dc5749396f7353295418e0227a (patch)
treed86b33ba12ae98f2568f56140f87047e9c3a879e /vis-motions.c
parent319958ec6feb1f0ca46fc064427d84abc41e45ce (diff)
downloadvis-532f52e9e52b98dc5749396f7353295418e0227a.tar.gz
vis-532f52e9e52b98dc5749396f7353295418e0227a.tar.xz
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
Diffstat (limited to 'vis-motions.c')
-rw-r--r--vis-motions.c2
1 files changed, 1 insertions, 1 deletions
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 },