Fixed history messages to work with wrapping

This commit is contained in:
James Booth
2014-11-09 00:36:25 +00:00
parent bcfbc9f7b3
commit fbda2b4170
3 changed files with 26 additions and 14 deletions

View File

@@ -552,9 +552,13 @@ _win_print(ProfWin *window, const char show_char, const char * const date_fmt,
int colour = COLOUR_ME;
if ((flags & NO_DATE) == 0) {
wattron(window->win, COLOUR_TIME);
if ((flags & NO_COLOUR_DATE) == 0) {
wattron(window->win, COLOUR_TIME);
}
wprintw(window->win, "%s %c ", date_fmt, show_char);
wattroff(window->win, COLOUR_TIME);
if ((flags & NO_COLOUR_DATE) == 0) {
wattroff(window->win, COLOUR_TIME);
}
}
if (strlen(from) > 0) {