grep/grep-2.5.1-color.patch
2004-11-16 13:27:09 +00:00

11 lines
322 B
Diff

--- grep-2.5.1/src/grep.c.color 2004-11-16 13:23:56.679753084 +0000
+++ grep-2.5.1/src/grep.c 2004-11-16 13:23:52.400568021 +0000
@@ -608,6 +608,7 @@
beg = b + match_size;
}
}
+ fputs ("\33[K", stdout);
fwrite (beg, 1, lim - beg, stdout);
if (ferror (stdout))
error (0, errno, _("writing output"));