From 64c33a829541791298486504e2c1ec451cf49508 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 26 Feb 2005 11:52:40 +0000 Subject: Improved display: align messages after prefixes (for example: "-@-" or "-=-") --- src/gui/curses/gui-display.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/curses/gui-display.c') diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c index 5ed25c2cd..679c90372 100644 --- a/src/gui/curses/gui-display.c +++ b/src/gui/curses/gui-display.c @@ -2220,7 +2220,6 @@ gui_init () curs_set (1); keypad (stdscr, TRUE); noecho (); - /*nonl();*/ nodelay (stdscr, TRUE); gui_init_colors (); @@ -2329,7 +2328,7 @@ gui_add_message (t_gui_buffer *buffer, int type, int color, char *message) buffer->last_line->line_with_message = 1; if (type & MSG_TYPE_HIGHLIGHT) buffer->last_line->line_with_highlight = 1; - if ((type & MSG_TYPE_TIME) || (type & MSG_TYPE_NICK)) + if ((type & MSG_TYPE_TIME) || (type & MSG_TYPE_NICK) || (type & MSG_TYPE_PREFIX)) buffer->last_line->length_align += length; if (type & MSG_TYPE_NOLOG) buffer->last_line->log_write = 0; @@ -2458,9 +2457,6 @@ gui_printf_color_type (t_gui_buffer *buffer, int type, int color, char *message, if (pos && !pos[1]) pos = NULL; } - - /*wrefresh (buffer->window->win_chat); - refresh ();*/ } else printf ("%s", buf3); -- cgit v1.2.3