sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 285d9c79a4aa2e20012fd7c7bccf5b18e1f12f7a
parent 47f995deba1928991ae296dd46926dd6fb9a8b20
Author: Dimitris Zervas <dzervas@dzervas.gr>
Date:   Fri, 18 Jul 2014 20:01:48 +0300

Fixed musl suupport (by Hiltjo)

Diffstat:
sandy.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandy.c b/sandy.c @@ -517,7 +517,7 @@ f_syntax(const Arg *arg) { statusflags|=S_DirtyScr; for(i=0; i<LENGTH(syntaxes); i++) if((arg && arg->v) ? !strcmp(arg->v, syntaxes[i].name) - : !regexec(syntax_file_res[i], filename, 1, NULL, 0)) { + : !regexec(syntax_file_res[i], filename, 0, NULL, 0)) { for(j=0; j<SYN_COLORS; j++) { if((syntx >= 0) && syntax_res[syntx][j]) regfree(syntax_res[syntx][j]); if(syntaxes[i].re_text[j] && regcomp(syntax_res[i][j], syntaxes[i].re_text[j], REG_EXTENDED|REG_NEWLINE)) i_die("Faulty regex.\n");