1
0
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:
Sebastien Helleu
2008-11-26 15:14:53 +01:00
parent 64fdbb0776
commit aa77b482ad
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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",
+1 -1
View File
@@ -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 */