]> granicus.if.org Git - sudo/commitdiff
Remove extra newline when the tty width is very small or unavailable
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Feb 2011 16:04:24 +0000 (11:04 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Feb 2011 16:04:24 +0000 (11:04 -0500)
common/lbuf.c

index 0c646556e6bb8d618dfce639133bbd90385e04df..5d7f687b89b149b6348669c7d0deaa96586de718 100644 (file)
@@ -219,7 +219,6 @@ lbuf_print(struct lbuf *lbuf)
     /* For very small widths just give up... */
     if (lbuf->cols <= lbuf->indent + contlen + 20) {
        lbuf->output(lbuf->buf);
-       lbuf->output("\n");
        goto done;
     }