hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria.git
Log | Files | Refs | README | LICENSE

commit 1832a6e75dd6f1262ca164049f27c442e9f82f0d
parent e5065d351963e624963265dbb431a438639dca63
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed Oct 29 22:17:30 +0000

No need to check for an empty word regex aswell

Diffstat:
hysteria-highlight.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hysteria-highlight.c b/hysteria-highlight.c @@ -135,9 +135,7 @@ main(void) { while(hasmatch) { hasmatch = 0; /* highlight word */ - if(regexword[0] && - (ret = regexec(&word, p, 1, &match, 0)) != REG_NOMATCH) - { + if((ret = regexec(&word, p, 1, &match, 0)) != REG_NOMATCH) { fwrite(p, 1, match.rm_so, stdout); fputs(yellow, stdout); p += match.rm_so;