From 031fab21b023269024e9ea31641cda061ed456d4 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 11 Mar 2006 07:33:54 +0000 Subject: Fixed display bug when top of buffer is displayed and first line is removed (according to "history_max_lines" setting) --- ChangeLog | 4 +++- src/gui/gui-common.c | 4 +++- weechat/ChangeLog | 4 +++- weechat/src/gui/gui-common.c | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 14d05fc4a..515024cf6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,12 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-03-10 +ChangeLog - 2006-03-11 Version 0.1.8 (under dev!): + * fixed display bug when top of buffer is displayed and first line is + removed (according to "history_max_lines" setting) * fixed /mode command output * improved alias completion (now uses target command for completion) * fixed completion problem in private with nicks diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c index f4ac39148..44f6f1aa7 100644 --- a/src/gui/gui-common.c +++ b/src/gui/gui-common.c @@ -633,8 +633,10 @@ gui_line_free (t_gui_line *line) { if (ptr_win->start_line == line) { - ptr_win->start_line = NULL; + ptr_win->start_line = ptr_win->start_line->next_line; ptr_win->start_line_pos = 0; + gui_draw_buffer_chat (ptr_win->buffer, 0); + gui_draw_buffer_status (ptr_win->buffer, 0); } } if (line->data) diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 14d05fc4a..515024cf6 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,12 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-03-10 +ChangeLog - 2006-03-11 Version 0.1.8 (under dev!): + * fixed display bug when top of buffer is displayed and first line is + removed (according to "history_max_lines" setting) * fixed /mode command output * improved alias completion (now uses target command for completion) * fixed completion problem in private with nicks diff --git a/weechat/src/gui/gui-common.c b/weechat/src/gui/gui-common.c index f4ac39148..44f6f1aa7 100644 --- a/weechat/src/gui/gui-common.c +++ b/weechat/src/gui/gui-common.c @@ -633,8 +633,10 @@ gui_line_free (t_gui_line *line) { if (ptr_win->start_line == line) { - ptr_win->start_line = NULL; + ptr_win->start_line = ptr_win->start_line->next_line; ptr_win->start_line_pos = 0; + gui_draw_buffer_chat (ptr_win->buffer, 0); + gui_draw_buffer_status (ptr_win->buffer, 0); } } if (line->data) -- cgit v1.2.3