1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

Fixed display bug with long lines

This commit is contained in:
Sebastien Helleu
2005-11-26 14:35:29 +00:00
parent a477f29cf8
commit 62bc46cb1d
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1285,7 +1285,8 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
if (word_length > 0)
{
/* spaces + word too long for current line */
if (window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
if ((window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
&& (word_length < window->win_chat_width - line->length_align))
{
gui_display_new_line (window, num_lines, count,
&lines_displayed, simulate);
+2 -1
View File
@@ -1285,7 +1285,8 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
if (word_length > 0)
{
/* spaces + word too long for current line */
if (window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
if ((window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
&& (word_length < window->win_chat_width - line->length_align))
{
gui_display_new_line (window, num_lines, count,
&lines_displayed, simulate);