1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix scroll of one page down when weechat.look.scroll_page_percent is less than 100 (bug #37875)

This commit is contained in:
Sebastien Helleu
2012-12-07 13:45:41 +01:00
parent eabf103e71
commit f7c47a8644
2 changed files with 8 additions and 8 deletions
+3 -1
View File
@@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
v0.4.0-dev, 2012-12-05
v0.4.0-dev, 2012-12-07
Version 0.4.0 (under dev!)
--------------------------
* core: fix scroll of one page down when weechat.look.scroll_page_percent is
less than 100 (bug #37875)
* core: disable paste detection and confirmation if bar item "input_paste" is
not used in a visible bar (task #12327)
* core: use high priority (50000) for commands /command and /input so that an
+5 -7
View File
@@ -1307,12 +1307,11 @@ gui_window_page_down (struct t_gui_window *window)
&window->scroll->start_line_pos,
num_lines);
/* check if we can display all */
/* check if we can display all lines in chat area */
ptr_line = window->scroll->start_line;
line_pos = window->scroll->start_line_pos;
gui_chat_calculate_line_diff (window, &ptr_line,
&line_pos,
num_lines);
gui_chat_calculate_line_diff (window, &ptr_line, &line_pos,
window->win_chat_height - 1);
if (!ptr_line)
{
window->scroll->start_line = NULL;
@@ -1399,11 +1398,10 @@ gui_window_scroll_down (struct t_gui_window *window)
&window->scroll->start_line_pos,
CONFIG_INTEGER(config_look_scroll_amount));
/* check if we can display all */
/* check if we can display all lines in chat area */
ptr_line = window->scroll->start_line;
line_pos = window->scroll->start_line_pos;
gui_chat_calculate_line_diff (window, &ptr_line,
&line_pos,
gui_chat_calculate_line_diff (window, &ptr_line, &line_pos,
window->win_chat_height - 1);
if (!ptr_line)