diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-03-11 07:33:54 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-03-11 07:33:54 +0000 |
commit | 031fab21b023269024e9ea31641cda061ed456d4 (patch) | |
tree | c229e929d0a235e28c52e5b931254d9fcda68d1a | |
parent | ea06fca69c9f917ba11aa61fe3abd2d7ef7761db (diff) | |
download | weechat-031fab21b023269024e9ea31641cda061ed456d4.zip |
Fixed display bug when top of buffer is displayed and first line is removed
(according to "history_max_lines" setting)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/gui/gui-common.c | 4 | ||||
-rw-r--r-- | weechat/ChangeLog | 4 | ||||
-rw-r--r-- | weechat/src/gui/gui-common.c | 4 |
4 files changed, 12 insertions, 4 deletions
@@ -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) |