mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
Fix display of scroll indicator when switching to buffer with free content
This commit is contained in:
@@ -533,6 +533,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
|
||||
ptr_bar_win->bar->bar_refresh_needed = 1;
|
||||
}
|
||||
|
||||
if (window->buffer->type == GUI_BUFFER_TYPE_FREE)
|
||||
{
|
||||
window->scroll = 0;
|
||||
window->scroll_lines_after = 0;
|
||||
}
|
||||
|
||||
window->refresh_needed = 1;
|
||||
|
||||
hook_signal_send ("buffer_switch",
|
||||
|
||||
@@ -64,7 +64,7 @@ struct t_gui_window
|
||||
int scroll_lines_after; /* number of lines after last line */
|
||||
/* displayed (with scrolling) */
|
||||
int scroll_reset_allowed; /* reset scroll allowed (when using */
|
||||
/* keys like page_up/down, end, .. */
|
||||
/* keys like page_up/down, end, ..) */
|
||||
struct t_gui_window_tree *ptr_tree;/* pointer to leaf in windows tree */
|
||||
|
||||
struct t_gui_window *prev_window; /* link to previous window */
|
||||
|
||||
Reference in New Issue
Block a user