diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-05-01 16:46:54 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-05-01 16:46:54 +0200 |
commit | 305175fb8c464a169e767a814f5c400154507e6f (patch) | |
tree | f27a180ad5dd3fd2013afe14867f351cfc0f655f /src/gui/curses/gui-curses-chat.c | |
parent | bf8ee88dd857d70055afec47d8857b7a59a6e1e4 (diff) | |
download | weechat-305175fb8c464a169e767a814f5c400154507e6f.zip |
core: fix display of long lines without time (message beginning with two tabs)
The long lines without time were not properly aligned: the second and subsequent
lines should start at column 0 of chat area.
Diffstat (limited to 'src/gui/curses/gui-curses-chat.c')
-rw-r--r-- | src/gui/curses/gui-curses-chat.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c index 18afb7b60..b38cf0601 100644 --- a/src/gui/curses/gui-curses-chat.c +++ b/src/gui/curses/gui-curses-chat.c @@ -478,7 +478,9 @@ gui_chat_display_word (struct t_gui_window *window, if ((CONFIG_INTEGER(config_look_align_end_of_lines) == CONFIG_LOOK_ALIGN_END_OF_LINES_MESSAGE) && (CONFIG_INTEGER(config_look_prefix_align) != CONFIG_LOOK_PREFIX_ALIGN_NONE) && CONFIG_STRING(config_look_prefix_suffix) - && CONFIG_STRING(config_look_prefix_suffix)[0]) + && CONFIG_STRING(config_look_prefix_suffix)[0] + && line->data->str_time + && line->data->str_time[0]) { if (!simulate) { @@ -619,7 +621,7 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window, /* display time */ if (window->buffer->time_for_each_line - && (line->data->str_time && line->data->str_time[0])) + && line->data->str_time && line->data->str_time[0]) { if (window->win_chat_cursor_y < window->coords_size) window->coords[window->win_chat_cursor_y].time_x1 = window->win_chat_cursor_x; @@ -1022,8 +1024,8 @@ gui_chat_display_time_to_prefix (struct t_gui_window *window, } if ((CONFIG_INTEGER(config_look_prefix_align) != CONFIG_LOOK_PREFIX_ALIGN_NONE) - && (CONFIG_STRING(config_look_prefix_suffix) - && CONFIG_STRING(config_look_prefix_suffix)[0])) + && CONFIG_STRING(config_look_prefix_suffix) + && CONFIG_STRING(config_look_prefix_suffix)[0]) { if (!simulate) { |