summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-26 15:14:53 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-26 15:14:53 +0100
commitaa77b482adce234207d9954850df0f6da6d61711 (patch)
tree9ef5423671815883147c7bb78e87dfd63c96697e /src/gui/curses/gui-curses-window.c
parent64fdbb07765fb98b6b5fd39ab087e80bfcee9394 (diff)
downloadweechat-aa77b482adce234207d9954850df0f6da6d61711.zip
Fix display of scroll indicator when switching to buffer with free content
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c6
1 files changed, 6 insertions, 0 deletions
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",