summaryrefslogtreecommitdiff
path: root/lolcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lolcat.c')
-rwxr-xr-xlolcat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lolcat.c b/lolcat.c
index a323720..ff39189 100755
--- a/lolcat.c
+++ b/lolcat.c
@@ -390,8 +390,11 @@ int main(int argc, char** argv)
if (c == '\n') {
l++;
i = 0;
+ cc = -1;
if (invert) {
wprintf(L"\033[49m");
+ } else {
+ wprintf(L"\033[0m");
}
} else {