diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-31 11:46:47 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-31 11:56:03 +0200 |
| commit | 9c48a188a51a971d65a6ce764733745fd163f017 (patch) | |
| tree | 751810ac58b6dc5e7dec4c9c325d878bc55fad75 /vis-motions.c | |
| parent | 74bec9dc356425c84e72d611857adb3b490fd39d (diff) | |
| download | vis-9c48a188a51a971d65a6ce764733745fd163f017.tar.gz vis-9c48a188a51a971d65a6ce764733745fd163f017.tar.xz | |
vis: rename search related constants
Diffstat (limited to 'vis-motions.c')
| -rw-r--r-- | vis-motions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vis-motions.c b/vis-motions.c index 3e7f269..7007f47 100644 --- a/vis-motions.c +++ b/vis-motions.c @@ -328,9 +328,9 @@ bool vis_motion(Vis *vis, enum VisMotion motion, ...) { } text_regex_free(regex); if (motion == VIS_MOVE_SEARCH_FORWARD) - motion = VIS_MOVE_SEARCH_NEXT; + motion = VIS_MOVE_SEARCH_REPEAT_FORWARD; else - motion = VIS_MOVE_SEARCH_PREV; + motion = VIS_MOVE_SEARCH_REPEAT_BACKWARD; break; } case VIS_MOVE_RIGHT_TO: @@ -588,11 +588,11 @@ const Movement vis_motions[] = { .vis = search_word_backward, .type = JUMP, }, - [VIS_MOVE_SEARCH_NEXT] = { + [VIS_MOVE_SEARCH_REPEAT_FORWARD] = { .vis = search_forward, .type = JUMP, }, - [VIS_MOVE_SEARCH_PREV] = { + [VIS_MOVE_SEARCH_REPEAT_BACKWARD] = { .vis = search_backward, .type = JUMP, }, |
