diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-02-26 11:52:40 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-02-26 11:52:40 +0000 |
commit | 64c33a829541791298486504e2c1ec451cf49508 (patch) | |
tree | 51de856dfe726f91aa752acb4759f509a472c5ac /src/gui/curses/gui-display.c | |
parent | 7596736ae9c8cf364fe937353f4db6a9365ee8cb (diff) | |
download | weechat-64c33a829541791298486504e2c1ec451cf49508.zip |
Improved display: align messages after prefixes (for example: "-@-" or "-=-")
Diffstat (limited to 'src/gui/curses/gui-display.c')
-rw-r--r-- | src/gui/curses/gui-display.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); |