diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-09 12:43:10 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-01-09 12:43:10 +0100 |
commit | 512de497f56e92945b5f29ad6b6f9f40287e1d2b (patch) | |
tree | d83a5e4d0b7f8b55a46cd050e109a59c1eeb71be /src/gui/curses | |
parent | fa240e8d1118f774ed885dafc2d4059c3f934dda (diff) | |
download | weechat-512de497f56e92945b5f29ad6b6f9f40287e1d2b.zip |
Display more colors on each line for WeeChat basic and nick colors on /color buffer
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-color.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c index d728be768..22e265d9e 100644 --- a/src/gui/curses/gui-curses-color.c +++ b/src/gui/curses/gui-curses-color.c @@ -652,13 +652,13 @@ gui_color_buffer_display () i, gui_weechat_colors[i].string); } - strcat (str_line, str_color); - if (((i + 1) % 8) == 0) + if (gui_chat_strlen_screen (str_line) + gui_chat_strlen_screen (str_color) > 80) { gui_chat_printf_y (gui_color_buffer, y++, " %s", str_line); str_line[0] = '\0'; } + strcat (str_line, str_color); } if (str_line[0]) { @@ -690,13 +690,13 @@ gui_color_buffer_display () gui_color_get_custom (items[i]), items[i]); } - strcat (str_line, str_color); - if (((i + 1) % 8) == 0) + if (gui_chat_strlen_screen (str_line) + gui_chat_strlen_screen (str_color) > 80) { gui_chat_printf_y (gui_color_buffer, y++, " %s", str_line); str_line[0] = '\0'; } + strcat (str_line, str_color); } if (str_line[0]) { |