summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-02-07 14:34:23 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-02-07 14:34:23 +0100
commitba92074bf825224410f95a47fdfe0caaca3f1d58 (patch)
tree2c5acbf09d2168bfc341ef16b4683b3643588827 /src/gui/curses
parentf1a3805ec860c5821227c017e8edc5508a526cad (diff)
downloadweechat-ba92074bf825224410f95a47fdfe0caaca3f1d58.zip
Fix missing suffix (after prefix) on lines when nothing is displayed before suffix (no time/buffer/prefix)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-curses-chat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/curses/gui-curses-chat.c b/src/gui/curses/gui-curses-chat.c
index a7e8877f7..953a21825 100644
--- a/src/gui/curses/gui-curses-chat.c
+++ b/src/gui/curses/gui-curses-chat.c
@@ -579,8 +579,7 @@ gui_chat_display_word (struct t_gui_window *window,
{
/* insert spaces for aligning text under time/nick */
length_align = gui_line_get_align (window->buffer, line, 0, 0);
- if ((length_align > 0)
- && (window->win_chat_cursor_x == 0)
+ if ((window->win_chat_cursor_x == 0)
&& (*lines_displayed > 0)
/* FIXME: modify arbitraty value for non aligning messages on time/nick? */
&& (length_align < (window->win_chat_width - 5)))
@@ -595,8 +594,8 @@ gui_chat_display_word (struct t_gui_window *window,
window->win_chat_cursor_x += length_align;
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)
+ && CONFIG_STRING(config_look_prefix_suffix)[0])
{
if (!simulate)
{