diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-21 23:34:25 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-10-22 19:50:24 +0200 |
| commit | 4509a105bbe97db8b7d2b82b57f4d7413104b5c7 (patch) | |
| tree | 3fca6a3865ccdb6f4e73c116b1750bfc1bb5b79d /vis.c | |
| parent | a3bb33c07d2ff62e4b2c6ec0782bb86211a42308 (diff) | |
| download | vis-4509a105bbe97db8b7d2b82b57f4d7413104b5c7.tar.gz vis-4509a105bbe97db8b7d2b82b57f4d7413104b5c7.tar.xz | |
vis: rename motion type
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -187,13 +187,13 @@ static size_t view_lines_middle(const Arg *arg); static size_t view_lines_bottom(const Arg *arg); static Movement moves[] = { - [MOVE_LINE_UP] = { .view = view_line_up, .type = LINEWISE }, - [MOVE_LINE_DOWN] = { .view = view_line_down, .type = LINEWISE }, - [MOVE_SCREEN_LINE_UP] = { .view = view_screenline_up, }, - [MOVE_SCREEN_LINE_DOWN] = { .view = view_screenline_down, }, - [MOVE_SCREEN_LINE_BEGIN] = { .view = view_screenline_begin, .type = CHARWISE }, - [MOVE_SCREEN_LINE_MIDDLE] = { .view = view_screenline_middle, .type = CHARWISE }, - [MOVE_SCREEN_LINE_END] = { .view = view_screenline_end, .type = CHARWISE|INCLUSIVE }, + [MOVE_LINE_UP] = { .cur = view_line_up, .type = LINEWISE }, + [MOVE_LINE_DOWN] = { .cur = view_line_down, .type = LINEWISE }, + [MOVE_SCREEN_LINE_UP] = { .cur = view_screenline_up, }, + [MOVE_SCREEN_LINE_DOWN] = { .cur = view_screenline_down, }, + [MOVE_SCREEN_LINE_BEGIN] = { .cur = view_screenline_begin, .type = CHARWISE }, + [MOVE_SCREEN_LINE_MIDDLE] = { .cur = view_screenline_middle, .type = CHARWISE }, + [MOVE_SCREEN_LINE_END] = { .cur = view_screenline_end, .type = CHARWISE|INCLUSIVE }, [MOVE_LINE_PREV] = { .txt = text_line_prev, }, [MOVE_LINE_BEGIN] = { .txt = text_line_begin, }, [MOVE_LINE_START] = { .txt = text_line_start, }, @@ -1481,8 +1481,8 @@ static void action_do(Action *a) { for (int i = 0; i < a->count; i++) { if (a->movement->txt) pos = a->movement->txt(txt, pos); - else if (a->movement->view) - pos = a->movement->view(cursor); + else if (a->movement->cur) + pos = a->movement->cur(cursor); else if (a->movement->file) pos = a->movement->file(vis, vis->win->file, pos); else if (a->movement->vis) |
