aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-24 12:58:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-24 12:58:19 +0200
commitd935e1f2691df05441155a863733bb83462de89e (patch)
tree6c360bd824c26de3d87bb8d0f1f7e5a1c7505b31 /vis.c
parent1b1cedc6666d99f6e9886439dca93278c47d131c (diff)
downloadvis-d935e1f2691df05441155a863733bb83462de89e.tar.gz
vis-d935e1f2691df05441155a863733bb83462de89e.tar.xz
Rename MOVE_LINE_{UP,DOWN} to MOVE_SCREEN_LINE_{UP,DOWN}
No functional change
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vis.c b/vis.c
index 2df6f7d..5177c43 100644
--- a/vis.c
+++ b/vis.c
@@ -187,8 +187,8 @@ static Operator ops[] = {
/* these can be passed as int argument to movement(&(const Arg){ .i = MOVE_* }) */
enum {
- MOVE_LINE_UP,
- MOVE_LINE_DOWN,
+ MOVE_SCREEN_LINE_UP,
+ MOVE_SCREEN_LINE_DOWN,
MOVE_LINE_PREV,
MOVE_LINE_BEGIN,
MOVE_LINE_START,
@@ -251,8 +251,8 @@ static size_t window_line_middle(const Arg *arg);
static size_t window_line_bottom(const Arg *arg);
static Movement moves[] = {
- [MOVE_LINE_UP] = { .win = window_line_up },
- [MOVE_LINE_DOWN] = { .win = window_line_down },
+ [MOVE_SCREEN_LINE_UP] = { .win = window_line_up },
+ [MOVE_SCREEN_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 },
@@ -334,8 +334,8 @@ static TextObject textobjs[] = {
/* if some movements are forced to be linewise, they are translated to text objects */
static TextObject *moves_linewise[] = {
- [MOVE_LINE_UP] = &textobjs[TEXT_OBJ_LINE_UP],
- [MOVE_LINE_DOWN] = &textobjs[TEXT_OBJ_LINE_DOWN],
+ [MOVE_SCREEN_LINE_UP] = &textobjs[TEXT_OBJ_LINE_UP],
+ [MOVE_SCREEN_LINE_DOWN] = &textobjs[TEXT_OBJ_LINE_DOWN],
};
/** functions to be called from keybindings */
@@ -689,7 +689,7 @@ static void operator(const Arg *arg) {
/* hacky way to handle double operators i.e. things like
* dd, yy etc where the second char isn't a movement */
action.linewise = true;
- action.textobj = moves_linewise[MOVE_LINE_DOWN];
+ action.textobj = moves_linewise[MOVE_SCREEN_LINE_DOWN];
action_do(&action);
} else {
action.op = op;