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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user