]> 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:44 +0000 (11:04 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 14 Feb 2011 16:04:44 +0000 (11:04 -0500)
--HG--
branch : 1.7

lbuf.c

diff --git a/lbuf.c b/lbuf.c
index b0fc2e4fdf59e510566f3ecff6e0a125a4b5cd21..a5e67bf915ccaf9a70d281762400ab302d057daf 100644 (file)
--- a/lbuf.c
+++ b/lbuf.c
@@ -287,7 +287,6 @@ lbuf_print(lbuf)
     /* For very small widths just give up... */
     if (lbuf->cols <= lbuf->indent + contlen + 20) {
        lbuf->output(lbuf->buf);
-       lbuf->output("\n");
        goto done;
     }