1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

Fixed scroll problem when one line is bigger than screen size

This commit is contained in:
Sebastien Helleu
2005-11-04 16:14:28 +00:00
parent 6b1f5a4a92
commit b575a4f578
4 changed files with 10 additions and 8 deletions
+1
View File
@@ -8,6 +8,7 @@ Version 0.1.6 (under dev!):
* new color management system, IRC colors are now correctly
displayed and can be removed by new options irc_colors_receive
and irc_colors_send
* fixed scroll problem when one line is bigger than screen size
* added setting for having one server buffer for all servers
(look_one_server_buffer)
* added setting for ignoring some chars when completing nicks
+4 -4
View File
@@ -1013,7 +1013,7 @@ gui_display_word (t_gui_window *window,
int pos_saved_char, chars_to_display, num_displayed;
if (!data ||
((!simulate) && (window->win_chat_cursor_y > window->win_chat_height - 1)))
((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height)))
return;
end_line = data + strlen (data);
@@ -1082,7 +1082,7 @@ gui_display_word (t_gui_window *window,
lines_displayed, simulate);
if ((data >= end_line) ||
(window->win_chat_cursor_y >= window->win_chat_height))
((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height)))
data = NULL;
}
@@ -1237,7 +1237,7 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
ptr_end_offset,
num_lines, count, &lines_displayed, simulate);
if (window->win_chat_cursor_y >= window->win_chat_height)
if ((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height))
ptr_data = NULL;
else
{
@@ -1548,7 +1548,7 @@ gui_draw_buffer_chat (t_gui_buffer *buffer, int erase)
}
else
{
/* look for first line to display, sarting from last line */
/* look for first line to display, starting from last line */
ptr_line = NULL;
line_pos = 0;
gui_calculate_line_diff (ptr_win, &ptr_line, &line_pos,
+1
View File
@@ -8,6 +8,7 @@ Version 0.1.6 (under dev!):
* new color management system, IRC colors are now correctly
displayed and can be removed by new options irc_colors_receive
and irc_colors_send
* fixed scroll problem when one line is bigger than screen size
* added setting for having one server buffer for all servers
(look_one_server_buffer)
* added setting for ignoring some chars when completing nicks
+4 -4
View File
@@ -1013,7 +1013,7 @@ gui_display_word (t_gui_window *window,
int pos_saved_char, chars_to_display, num_displayed;
if (!data ||
((!simulate) && (window->win_chat_cursor_y > window->win_chat_height - 1)))
((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height)))
return;
end_line = data + strlen (data);
@@ -1082,7 +1082,7 @@ gui_display_word (t_gui_window *window,
lines_displayed, simulate);
if ((data >= end_line) ||
(window->win_chat_cursor_y >= window->win_chat_height))
((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height)))
data = NULL;
}
@@ -1237,7 +1237,7 @@ gui_display_line (t_gui_window *window, t_gui_line *line, int count, int simulat
ptr_end_offset,
num_lines, count, &lines_displayed, simulate);
if (window->win_chat_cursor_y >= window->win_chat_height)
if ((!simulate) && (window->win_chat_cursor_y >= window->win_chat_height))
ptr_data = NULL;
else
{
@@ -1548,7 +1548,7 @@ gui_draw_buffer_chat (t_gui_buffer *buffer, int erase)
}
else
{
/* look for first line to display, sarting from last line */
/* look for first line to display, starting from last line */
ptr_line = NULL;
line_pos = 0;
gui_calculate_line_diff (ptr_win, &ptr_line, &line_pos,