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.
This commit is contained in:
Bruce Evans 2006-10-10 06:36:01 +00:00
parent 7a6f335e14
commit c7eeb59df0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163190

View File

@ -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;
}