aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fmt.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-01-18 16:58:56 +0000
committerrsc <devnull@localhost>2006-01-18 16:58:56 +0000
commit2d8bbdeafa9c58298fb5cea48c9b23781fdbbd67 (patch)
tree5af324514d147495358ac89df8c8e6d923f7c6f9 /src/cmd/fmt.c
parentbebed446d09081a3cd7e25bdb536de1364e50cd6 (diff)
downloadplan9port-2d8bbdeafa9c58298fb5cea48c9b23781fdbbd67.tar.gz
plan9port-2d8bbdeafa9c58298fb5cea48c9b23781fdbbd67.tar.bz2
plan9port-2d8bbdeafa9c58298fb5cea48c9b23781fdbbd67.zip
fix -j
Diffstat (limited to 'src/cmd/fmt.c')
-rw-r--r--src/cmd/fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fmt.c b/src/cmd/fmt.c
index 59c14133..f2ebb7bf 100644
--- a/src/cmd/fmt.c
+++ b/src/cmd/fmt.c
@@ -210,7 +210,7 @@ printwords(Word **w, int nw)
nsp = nspaceafter(w[i-1]->text);
if(col+nsp+utflen(w[i]->text) > extraindent+length)
break; /* fold line */
- if(!join && n != 0 && w[i]->bol)
+ if(!join && w[i]->bol)
break;
for(j=0; j<nsp; j++)
Bputc(&bout, ' '); /* emit space; another word will follow */