1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Command /clear [-all] now clears hotlist

This commit is contained in:
Sebastien Helleu
2006-04-21 13:02:50 +00:00
parent a17a5337dc
commit daf2087164
4 changed files with 18 additions and 6 deletions
+2 -1
View File
@@ -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
+7 -2
View File
@@ -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);
}
/*
+2 -1
View File
@@ -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
+7 -2
View File
@@ -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);
}
/*