diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 21:01:41 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 21:01:41 +0200 |
| commit | 5c82b53dc43eed66276166d4224749bf11c21e7f (patch) | |
| tree | 11f3874ff5e5e06edb89da85149e8663a3bf17b4 | |
| parent | 8d960c6dc536efcbe5dc2fae330a95015e0aae86 (diff) | |
| download | vis-5c82b53dc43eed66276166d4224749bf11c21e7f.tar.gz vis-5c82b53dc43eed66276166d4224749bf11c21e7f.tar.xz | |
Make movements to next / previous line available
| -rw-r--r-- | vis.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 }, |
