From 88d1e3fcdfe50696aab82634c2f6f3094e61a025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Sep 2014 23:04:20 +0200 Subject: Rename OP_PASTE to OP_PUT --- vis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index 7e75dbc..829b994 100644 --- a/vis.c +++ b/vis.c @@ -145,7 +145,7 @@ static Action action_prev; /* last operator action used by the repeat '.' key * /** operators */ static void op_change(OperatorContext *c); static void op_yank(OperatorContext *c); -static void op_paste(OperatorContext *c); +static void op_put(OperatorContext *c); static void op_delete(OperatorContext *c); /* these can be passed as int argument to operator(&(const Arg){ .i = OP_*}) */ @@ -153,14 +153,14 @@ enum { OP_DELETE, OP_CHANGE, OP_YANK, - OP_PASTE, + OP_PUT, }; static Operator ops[] = { [OP_DELETE] = { op_delete, false }, [OP_CHANGE] = { op_change, false }, [OP_YANK] = { op_yank, false }, - [OP_PASTE] = { op_paste, true }, + [OP_PUT] = { op_put, true }, }; /* these can be passed as int argument to movement(&(const Arg){ .i = MOVE_* }) */ @@ -447,7 +447,7 @@ static void op_yank(OperatorContext *c) { register_put(c->reg, vis->win->text, &c->range); } -static void op_paste(OperatorContext *c) { +static void op_put(OperatorContext *c) { size_t pos = window_cursor_get(vis->win->win); if (c->reg->linewise) pos = text_line_next(vis->win->text, pos); -- cgit v1.2.3