From 04cca344b34c0aa59871da8e2401f62c5b61a675 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 10 Oct 2006 06:36:01 +0000 Subject: 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(-) (limited to 'sys/ddb') diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index a349241..40f56ba 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; } -- cgit v1.1