commit 7a10cda6ad19e4d4c9db74393d9c0763e93d1395
parent 64da685028f1f9a748136f731eb3eaa266f14e1e
Author: sin <sin@2f30.org>
Date: Thu, 8 May 2014 18:18:25 +0100
Ensure to flush stdout
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/highlight.c b/highlight.c
@@ -91,6 +91,7 @@ main(void) {
fputs(green, stdout);
fputs(p, stdout);
fputs(reset, stdout);
+ fflush(stdout);
continue;
}
@@ -146,6 +147,7 @@ main(void) {
}
}
fputs(p, stdout); /* rest */
+ fflush(stdout);
}
/* free regex */