diff options
author | 2007-03-23 13:01:31 +0000 | |
---|---|---|
committer | 2007-03-23 13:01:31 +0000 | |
commit | 2096354ea8dd35d8eb170bbab123489cc953bf0e (patch) | |
tree | 62b914e88217259a90611f293dd299c4833d6f4b | |
parent | Fixed bug with channel topic after reconnection (not erased) (bug #19384) (diff) | |
download | weechat-2096354ea8dd35d8eb170bbab123489cc953bf0e.tar.xz weechat-2096354ea8dd35d8eb170bbab123489cc953bf0e.zip |
Remove current buffer from hotlist when scrolling down and end of buffer is reached
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 15 | ||||
-rw-r--r-- | weechat/src/gui/curses/gui-curses-window.c | 15 |
2 files changed, 18 insertions, 12 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 2e09a4fb0..5aa28fc56 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -538,7 +538,7 @@ gui_window_page_up (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -578,8 +578,9 @@ gui_window_page_down (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -606,7 +607,7 @@ gui_window_scroll_up (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -647,8 +648,9 @@ gui_window_scroll_down (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -672,7 +674,7 @@ gui_window_scroll_top (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -695,8 +697,9 @@ gui_window_scroll_bottom (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } diff --git a/weechat/src/gui/curses/gui-curses-window.c b/weechat/src/gui/curses/gui-curses-window.c index 2e09a4fb0..5aa28fc56 100644 --- a/weechat/src/gui/curses/gui-curses-window.c +++ b/weechat/src/gui/curses/gui-curses-window.c @@ -538,7 +538,7 @@ gui_window_page_up (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -578,8 +578,9 @@ gui_window_page_down (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -606,7 +607,7 @@ gui_window_scroll_up (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -647,8 +648,9 @@ gui_window_scroll_down (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -672,7 +674,7 @@ gui_window_scroll_top (t_gui_window *window) window->start_line = NULL; window->start_line_pos = 0; } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } @@ -695,8 +697,9 @@ gui_window_scroll_bottom (t_gui_window *window) { window->start_line = NULL; window->start_line_pos = 0; + hotlist_remove_buffer (window->buffer); } - gui_status_draw (window->buffer, 0); + gui_status_draw (window->buffer, 1); } } |