summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-02-27 23:12:34 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-02-27 23:12:34 +0000
commitd310a8e960bcad6878e8b9eae5caad9b4efad4f8 (patch)
tree543657862cd988ee7ca2015fbfc4ec51b2493258 /src/gui/curses
parent4281d09a95e2790957087972d0c51f7fe2208bc1 (diff)
downloadweechat-d310a8e960bcad6878e8b9eae5caad9b4efad4f8.zip
Fixed display bug when many windows are opened
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index e3c956e09..c027c8c89 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -789,14 +789,14 @@ gui_draw_buffer_chat (t_gui_buffer *buffer, int erase)
{
ptr_line = buffer->last_line;
lines_used = 0;
+ ptr_win->win_chat_cursor_x = 0;
+ ptr_win->win_chat_cursor_y = 0;
while (ptr_line
&& (lines_used < (ptr_win->win_chat_height + ptr_win->sub_lines)))
{
lines_used += gui_display_line (ptr_win, ptr_line, 0, 1);
ptr_line = ptr_line->prev_line;
}
- ptr_win->win_chat_cursor_x = 0;
- ptr_win->win_chat_cursor_y = 0;
if (lines_used > (ptr_win->win_chat_height + ptr_win->sub_lines))
{
/* screen will be full (we'll display only end of 1st line) */