core: fix line alignment when option weechat.look.buffer_time_format is set to empty string
A regression was introduced by commit 305175fb8c464a169e767a814f5c400154507e6f
This commit is contained in:
parent
a256cb4d4d
commit
2e43bac479
@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.4.2-dev, 2013-05-20
|
||||
v0.4.2-dev, 2013-05-21
|
||||
|
||||
|
||||
This document lists all changes for each version.
|
||||
@ -11,6 +11,12 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
(file 'NEWS' in sources).
|
||||
|
||||
|
||||
Version 0.4.2 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix line alignment when option weechat.look.buffer_time_format is set
|
||||
to empty string
|
||||
|
||||
Version 0.4.1 (2013-05-20)
|
||||
--------------------------
|
||||
|
||||
|
@ -479,8 +479,7 @@ gui_chat_display_word (struct t_gui_window *window,
|
||||
&& (CONFIG_INTEGER(config_look_prefix_align) != CONFIG_LOOK_PREFIX_ALIGN_NONE)
|
||||
&& CONFIG_STRING(config_look_prefix_suffix)
|
||||
&& CONFIG_STRING(config_look_prefix_suffix)[0]
|
||||
&& line->data->str_time
|
||||
&& line->data->str_time[0])
|
||||
&& line->data->date > 0)
|
||||
{
|
||||
if (!simulate)
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ gui_line_get_align (struct t_gui_buffer *buffer, struct t_gui_line *line,
|
||||
int length_time, length_buffer, length_suffix, prefix_length, prefix_is_nick;
|
||||
|
||||
/* return immediately if line has no time (not aligned) */
|
||||
if (!line->data->str_time || !line->data->str_time[0])
|
||||
if (line->data->date == 0)
|
||||
return 0;
|
||||
|
||||
/* return immediately if alignment for end of lines is "time" */
|
||||
|
Loading…
x
Reference in New Issue
Block a user