From 1162c6ee51453565020e552cb776c8ee4548238d Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 4 Jun 2002 10:40:14 +0000 Subject: Wrap lines correctly for the `l' command. --- usr.bin/sed/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 7efdeed..4674404 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -480,7 +480,7 @@ lputs(s) } for (count = 0; *s; ++s) { - if (count >= termwidth) { + if (count + 5 >= termwidth) { (void)printf("\\\n"); count = 0; } -- cgit v1.1