sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit ad6da18ca683305011113ca2f29dc474ee7e8a66
parent c82425e128383d6750488435deb2b2326c3f180a
Author: Evan Gates <evan.gates@gmail.com>
Date:   Thu Mar 12 14:46:30 -0700

increment pointer by runelen(delim) not 1

Diffstat:
sed.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sed.c b/sed.c @@ -860,7 +860,7 @@ get_s_arg(Cmd *c, char *s) /* FIXME: different eregcomp that calls fatal */ eregcomp(c->u.s.re, s, 0); } - s = p + 1; + s = p + runelen(delim); } /* Replace */ @@ -894,7 +894,7 @@ get_s_arg(Cmd *c, char *s) if (gflags.s_cont) return p; - s = p + 1; + s = p + runelen(delim); /* Flags */ p = semicolon_arg(s = chomp(s));