summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/gui/gui-common.c9
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/src/gui/gui-common.c9
4 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index cd776d80f..a04a220d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,10 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2006-04-19
+ChangeLog - 2006-04-21
Version 0.1.9 (under dev!):
+ * command /clear [-all] now clears hotlist
* fixed crash after /upgrade if a line in history is empty
* fixed many crashes with DCC chat
* added new option to customize input prompt
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);
}
/*
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index cd776d80f..a04a220d4 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -1,9 +1,10 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
-ChangeLog - 2006-04-19
+ChangeLog - 2006-04-21
Version 0.1.9 (under dev!):
+ * command /clear [-all] now clears hotlist
* fixed crash after /upgrade if a line in history is empty
* fixed many crashes with DCC chat
* added new option to customize input prompt
diff --git a/weechat/src/gui/gui-common.c b/weechat/src/gui/gui-common.c
index 40410b0a4..50066f1a3 100644
--- a/weechat/src/gui/gui-common.c
+++ b/weechat/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);
}
/*