aboutsummaryrefslogtreecommitdiff
path: root/src/grab.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-22 13:28:30 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-22 13:33:04 +0100
commit912da4241774194c9cbb4bfca13384b14c5211aa (patch)
treed5c66b5f8f3a39160ebe236c023fef869e9daf4b /src/grab.c
parent9dffaf04d5c4c58e50df74dd68b11862e2a35e05 (diff)
Change v and y to G and X
Diffstat (limited to 'src/grab.c')
-rw-r--r--src/grab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/grab.c b/src/grab.c
index 112df40..dbed779 100644
--- a/src/grab.c
+++ b/src/grab.c
@@ -66,7 +66,7 @@ typedef void (*put_func)(struct sv, regmatch_t *, const char *);
static void cmdg(struct sv, struct ops, size_t, const char *);
static void cmdx(struct sv, struct ops, size_t, const char *);
-static void cmdy(struct sv, struct ops, size_t, const char *);
+static void cmdX(struct sv, struct ops, size_t, const char *);
static void putm(struct sv, regmatch_t *, const char *);
static void putm_nc(struct sv, regmatch_t *, const char *);
@@ -95,9 +95,9 @@ static struct {
static const cmd_func op_table[UCHAR_MAX] = {
['g'] = cmdg,
- ['v'] = cmdg,
+ ['G'] = cmdg,
['x'] = cmdx,
- ['y'] = cmdy,
+ ['X'] = cmdX,
};
static void
@@ -324,7 +324,7 @@ cmdg(struct sv sv, struct ops ops, size_t i, const char *filename)
struct op op = ops.buf[i];
r = regexec(&op.pat, sv.p, 1, &rm, REG_STARTEND);
- if ((r == REG_NOMATCH && op.c == 'g') || (r != REG_NOMATCH && op.c == 'v'))
+ if ((r == REG_NOMATCH && op.c == 'g') || (r != REG_NOMATCH && op.c == 'G'))
return;
if (i + 1 == ops.len)
@@ -366,7 +366,7 @@ cmdx(struct sv sv, struct ops ops, size_t i, const char *filename)
}
void
-cmdy(struct sv sv, struct ops ops, size_t i, const char *filename)
+cmdX(struct sv sv, struct ops ops, size_t i, const char *filename)
{
regmatch_t rm = {
.rm_so = 0,