diff options
author | bde <bde@FreeBSD.org> | 2006-10-10 06:36:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2006-10-10 06:36:01 +0000 |
commit | 04cca344b34c0aa59871da8e2401f62c5b61a675 (patch) | |
tree | 35da932c489bdeba146810ff8ae9172b64a6fc31 /sys | |
parent | 247264b8c2e423e8b30bcbdbae82539e7ab3cfe9 (diff) | |
download | FreeBSD-src-04cca344b34c0aa59871da8e2401f62c5b61a675.zip FreeBSD-src-04cca344b34c0aa59871da8e2401f62c5b61a675.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ddb/db_output.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |