summaryrefslogtreecommitdiff
path: root/usr.bin/mg/re_search.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 02:23:38 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2009-06-04 02:23:38 +0000
commite793626495495d40a46fde7c191a8b50e50a7fbb (patch)
tree59c1f60cc566e6605b015ca3ee65e89631b7e8d0 /usr.bin/mg/re_search.c
parentf61a5bac0b93a190f97ccac81cd6728fc500b021 (diff)
Rename w_flag to w_rflag. This is not a general purpose
flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one. Turdshine. No functional chage.
Diffstat (limited to 'usr.bin/mg/re_search.c')
-rw-r--r--usr.bin/mg/re_search.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mg/re_search.c b/usr.bin/mg/re_search.c
index 87233eb0727..1778f0ab063 100644
--- a/usr.bin/mg/re_search.c
+++ b/usr.bin/mg/re_search.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re_search.c,v 1.24 2006/07/25 08:22:32 kjell Exp $ */
+/* $OpenBSD: re_search.c,v 1.25 2009/06/04 02:23:37 kjell Exp $ */
/* This file is in the public domain. */
@@ -189,7 +189,7 @@ retry:
}
stopsearch:
- curwp->w_flag |= WFFULL;
+ curwp->w_rflag |= WFFULL;
update();
if (!inmacro) {
if (rcnt == 0)
@@ -329,7 +329,7 @@ re_forwsrch(void)
} else {
curwp->w_doto = re_match[0].rm_eo;
curwp->w_dotp = clp;
- curwp->w_flag |= WFMOVE;
+ curwp->w_rflag |= WFMOVE;
return (TRUE);
}
}
@@ -387,7 +387,7 @@ re_backsrch(void)
memcpy(&re_match[0], &lastmatch, sizeof(regmatch_t));
curwp->w_doto = re_match[0].rm_so;
curwp->w_dotp = clp;
- curwp->w_flag |= WFMOVE;
+ curwp->w_rflag |= WFMOVE;
return (TRUE);
}
}
@@ -530,7 +530,7 @@ killmatches(int cond)
count++;
s = ldelete(llength(clp) + 1, KNONE);
clp = curwp->w_dotp;
- curwp->w_flag |= WFMOVE;
+ curwp->w_rflag |= WFMOVE;
if (s == FALSE)
return (FALSE);
} else
@@ -539,7 +539,7 @@ killmatches(int cond)
ewprintf("%d line(s) deleted", count);
if (count > 0)
- curwp->w_flag |= WFMOVE;
+ curwp->w_rflag |= WFMOVE;
return (TRUE);
}