aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-24 19:51:26 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-24 19:51:26 +0200
commitc4be8388aa0ccc678c765be065ef5563c3ff7c12 (patch)
treed805abbfc599a33ed37b098989e9d17fbc8b6ad8
parentcd8518becf7938c1fd59c8cb0cc494c5bbd17ee3 (diff)
downloadvis-c4be8388aa0ccc678c765be065ef5563c3ff7c12.tar.gz
vis-c4be8388aa0ccc678c765be065ef5563c3ff7c12.tar.xz
'f' and 't' should be inclusive
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index 110891f..17bf406 100644
--- a/vis.c
+++ b/vis.c
@@ -281,9 +281,9 @@ static Movement moves[] = {
[MOVE_FILE_BEGIN] = { .txt = text_begin, .type = LINEWISE },
[MOVE_FILE_END] = { .txt = text_end, .type = LINEWISE },
[MOVE_LEFT_TO] = { .cmd = to_left, .type = LINEWISE },
- [MOVE_RIGHT_TO] = { .cmd = to, .type = LINEWISE },
+ [MOVE_RIGHT_TO] = { .cmd = to, .type = LINEWISE|INCLUSIVE },
[MOVE_LEFT_TILL] = { .cmd = till_left, .type = LINEWISE },
- [MOVE_RIGHT_TILL] = { .cmd = till, .type = LINEWISE },
+ [MOVE_RIGHT_TILL] = { .cmd = till, .type = LINEWISE|INCLUSIVE },
[MOVE_MARK] = { .cmd = mark_goto, .type = LINEWISE },
[MOVE_MARK_LINE] = { .cmd = mark_line_goto, .type = LINEWISE },
[MOVE_SEARCH_FORWARD] = { .cmd = search_forward, .type = LINEWISE },