From aa77b482adce234207d9954850df0f6da6d61711 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 26 Nov 2008 15:14:53 +0100 Subject: Fix display of scroll indicator when switching to buffer with free content --- src/gui/curses/gui-curses-window.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/curses/gui-curses-window.c') diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 71bf2b1d9..6321c77d0 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -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", -- cgit v1.2.3