summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-04-21 13:02:50 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-04-21 13:02:50 +0000
commitdaf2087164fc529537226760f75152a7b6368b7b (patch)
treec6b2ff98edfb3ac5a1e33b69dc07ec01fca7b0ec /src/gui
parenta17a5337dc7a84c4314b95118cff9393a16a4156 (diff)
downloadweechat-daf2087164fc529537226760f75152a7b6368b7b.zip
Command /clear [-all] now clears hotlist
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-common.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c
index 40410b0a4..50066f1a3 100644
--- a/src/gui/gui-common.c
+++ b/src/gui/gui-common.c
@@ -562,6 +562,10 @@ gui_buffer_clear (t_gui_buffer *buffer)
t_gui_window *ptr_win;
t_gui_line *ptr_line;
+ /* remove buffer from hotlist */
+ hotlist_remove_buffer (buffer);
+
+ /* remove lines from buffer */
while (buffer->lines)
{
ptr_line = buffer->lines->next_line;
@@ -575,7 +579,8 @@ gui_buffer_clear (t_gui_buffer *buffer)
buffer->last_line = NULL;
buffer->num_lines = 0;
buffer->line_complete = 1;
-
+
+ /* remove any scroll for buffer */
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
{
if (ptr_win->buffer == buffer)
@@ -587,7 +592,7 @@ gui_buffer_clear (t_gui_buffer *buffer)
}
gui_draw_buffer_chat (buffer, 1);
- gui_draw_buffer_status (buffer, 0);
+ gui_draw_buffer_status (buffer, 1);
}
/*