diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-24 13:30:51 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-24 13:30:51 +0200 |
| commit | 6e5b0ab026093e39fd863ca605250d9558edce41 (patch) | |
| tree | 96c9f48c078b3beed987716074b77a61a9c0593d /vis.c | |
| parent | 5993bc8c8fd13e71410d1f8b555665c0b8e95f22 (diff) | |
| download | vis-6e5b0ab026093e39fd863ca605250d9558edce41.tar.gz vis-6e5b0ab026093e39fd863ca605250d9558edce41.tar.xz | |
Implement 'g0', 'gm', 'g$'
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -189,6 +189,9 @@ static Operator ops[] = { enum { MOVE_SCREEN_LINE_UP, MOVE_SCREEN_LINE_DOWN, + MOVE_SCREEN_LINE_BEGIN, + MOVE_SCREEN_LINE_MIDDLE, + MOVE_SCREEN_LINE_END, MOVE_LINE_PREV, MOVE_LINE_BEGIN, MOVE_LINE_START, @@ -253,6 +256,9 @@ static size_t window_lines_bottom(const Arg *arg); static Movement moves[] = { [MOVE_SCREEN_LINE_UP] = { .win = window_line_up }, [MOVE_SCREEN_LINE_DOWN]= { .win = window_line_down }, + [MOVE_SCREEN_LINE_BEGIN] = { .win = window_line_begin, .type = CHARWISE }, + [MOVE_SCREEN_LINE_MIDDLE] = { .win = window_line_middle,.type = CHARWISE }, + [MOVE_SCREEN_LINE_END] = { .win = window_line_end, .type = CHARWISE|INCLUSIVE }, [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 }, |
