vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 46e77dfe1095ea33a8b7769f9a8feb6e9a8999b5 parent 209e61c919405114a836861bc83c5b4a1263a268 Author: Marc André Tanner <mat@brain-dump.org> Date: Mon, 18 Jan 2016 21:01:00 +0100 text-regex: remove unused struct member Diffstat:
| M | text-regex.c | | | 2 | -- |
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/text-regex.c b/text-regex.c @@ -4,7 +4,6 @@ #include "text-regex.h" struct Regex { - const char *string; regex_t regex; }; @@ -17,7 +16,6 @@ Regex *text_regex_new(void) { } int text_regex_compile(Regex *regex, const char *string, int cflags) { - regex->string = string; int r = regcomp(®ex->regex, string, cflags); if (r) regcomp(®ex->regex, "\0\0", 0);