From c7eeb59df08ca7dc4dd49425f93ffb66f9cd0351 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 10 Oct 2006 06:36:01 +0000 Subject: [PATCH] Fixed loss of whitespace suppression at ends of lines. Whitespace suppression is only needed at ends of lines, but rev.1.32 forced it off precisely there. The --More-- prompt is now cleared by explicitly forcing out the whitespace in "\r \r". It might be better to use the line editor's clearing functions, but these are currently static and not much different. --- sys/ddb/db_output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index a3492416ae91..40f56ba95abc 100644 --- a/sys/ddb/db_output.c +++ b/sys/ddb/db_output.c @@ -142,7 +142,6 @@ db_putchar(c, arg) } else if (c == '\n') { /* Newline */ - db_force_whitespace(); cnputc(c); db_output_position = 0; db_last_non_space = 0; @@ -155,7 +154,6 @@ db_putchar(c, arg) } else if (c == '\r') { /* Return */ - db_force_whitespace(); cnputc(c); db_output_position = 0; db_last_non_space = 0; @@ -247,7 +245,9 @@ db_pager(void) #endif } } - db_printf(" \r"); + db_printf(" "); + db_force_whitespace(); + db_printf("\r"); db_newlines = 0; }