summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-06-04 10:40:14 +0000
committertjr <tjr@FreeBSD.org>2002-06-04 10:40:14 +0000
commit1162c6ee51453565020e552cb776c8ee4548238d (patch)
tree817e7374cd34b09d6289c5d4fdf33043dfd9e381 /usr.bin/sed
parenta62cd9c5ce555a5cee78f0d7627a3dd4df581f80 (diff)
downloadFreeBSD-src-1162c6ee51453565020e552cb776c8ee4548238d.zip
FreeBSD-src-1162c6ee51453565020e552cb776c8ee4548238d.tar.gz
Wrap lines correctly for the `l' command.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/process.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud