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:
parent
247264b8c2
commit
04cca344b3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user