aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-10 21:01:41 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-10 21:01:41 +0200
commit5c82b53dc43eed66276166d4224749bf11c21e7f (patch)
tree11f3874ff5e5e06edb89da85149e8663a3bf17b4 /vis.c
parent8d960c6dc536efcbe5dc2fae330a95015e0aae86 (diff)
downloadvis-5c82b53dc43eed66276166d4224749bf11c21e7f.tar.gz
vis-5c82b53dc43eed66276166d4224749bf11c21e7f.tar.xz
Make movements to next / previous line available
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vis.c b/vis.c
index fe7d4c1..a550433 100644
--- a/vis.c
+++ b/vis.c
@@ -165,10 +165,12 @@ static Operator ops[] = {
enum {
MOVE_LINE_UP,
MOVE_LINE_DOWN,
+ MOVE_LINE_PREV,
MOVE_LINE_BEGIN,
MOVE_LINE_START,
MOVE_LINE_FINISH,
MOVE_LINE_END,
+ MOVE_LINE_NEXT,
MOVE_LINE,
MOVE_COLUMN,
MOVE_CHAR_PREV,
@@ -218,10 +220,12 @@ static size_t column(const Arg *arg);
static Movement moves[] = {
[MOVE_LINE_UP] = { .win = window_line_up },
[MOVE_LINE_DOWN] = { .win = window_line_down },
+ [MOVE_LINE_PREV] = { .txt = text_line_prev, .type = LINEWISE },
[MOVE_LINE_BEGIN] = { .txt = text_line_begin, .type = LINEWISE },
[MOVE_LINE_START] = { .txt = text_line_start, .type = LINEWISE },
[MOVE_LINE_FINISH] = { .txt = text_line_finish, .type = LINEWISE },
[MOVE_LINE_END] = { .txt = text_line_end, .type = LINEWISE },
+ [MOVE_LINE_NEXT] = { .txt = text_line_next, .type = LINEWISE },
[MOVE_LINE] = { .cmd = line, .type = LINEWISE },
[MOVE_COLUMN] = { .cmd = column, .type = CHARWISE },
[MOVE_CHAR_PREV] = { .win = window_char_prev },