diff --git a/ed.c b/ed.c index c4cce37..ff619d8 100644 --- a/ed.c +++ b/ed.c @@ -1169,9 +1169,8 @@ repeat: case 'j': chkprint(1); deflines(curln, curln+1); - if (!line1) - goto bad_address; - join(); + if (line1 != line2 && curln != 0) + join(); break; case 'z': if (nlines > 1)