mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
Fixed display bug in chat window when a message length equals to window width
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-11-22
|
||||
ChangeLog - 2005-11-26
|
||||
|
||||
|
||||
Version 0.1.7 (under dev!):
|
||||
* fixed display bug in chat window when a message length equals to window
|
||||
width
|
||||
* added new keys for switching to other windows: alt-w followed by
|
||||
alt-{arrow}
|
||||
* added new keys for scrolling to previous/next highlight: alt-P / alt-N
|
||||
|
||||
@@ -1285,8 +1285,7 @@ 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 - 1)
|
||||
&& (word_length < window->win_chat_width - line->length_align))
|
||||
if (window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
|
||||
{
|
||||
gui_display_new_line (window, num_lines, count,
|
||||
&lines_displayed, simulate);
|
||||
@@ -1306,8 +1305,9 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
|
||||
ptr_data += word_start_offset;
|
||||
}
|
||||
|
||||
/* word is exactly width => we'll skip next leading spaces for next line */
|
||||
if (word_length == window->win_chat_width - line->length_align)
|
||||
/* word is exactly remaining width => we'll skip next leading spaces for next line */
|
||||
if (word_length == window->win_chat_width -
|
||||
((window->win_chat_cursor_x == 0) ? line->length_align : window->win_chat_cursor_x))
|
||||
skip_spaces = 1;
|
||||
|
||||
/* display word */
|
||||
|
||||
+3
-1
@@ -1,10 +1,12 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-11-22
|
||||
ChangeLog - 2005-11-26
|
||||
|
||||
|
||||
Version 0.1.7 (under dev!):
|
||||
* fixed display bug in chat window when a message length equals to window
|
||||
width
|
||||
* added new keys for switching to other windows: alt-w followed by
|
||||
alt-{arrow}
|
||||
* added new keys for scrolling to previous/next highlight: alt-P / alt-N
|
||||
|
||||
@@ -1285,8 +1285,7 @@ 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 - 1)
|
||||
&& (word_length < window->win_chat_width - line->length_align))
|
||||
if (window->win_chat_cursor_x + word_length_with_spaces > window->win_chat_width)
|
||||
{
|
||||
gui_display_new_line (window, num_lines, count,
|
||||
&lines_displayed, simulate);
|
||||
@@ -1306,8 +1305,9 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
|
||||
ptr_data += word_start_offset;
|
||||
}
|
||||
|
||||
/* word is exactly width => we'll skip next leading spaces for next line */
|
||||
if (word_length == window->win_chat_width - line->length_align)
|
||||
/* word is exactly remaining width => we'll skip next leading spaces for next line */
|
||||
if (word_length == window->win_chat_width -
|
||||
((window->win_chat_cursor_x == 0) ? line->length_align : window->win_chat_cursor_x))
|
||||
skip_spaces = 1;
|
||||
|
||||
/* display word */
|
||||
|
||||
Reference in New Issue
Block a user