mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
Added numeric argument for /clear command (buffer number) (patch #5372)
This commit is contained in:
@@ -378,6 +378,12 @@ gui_buffer_clear (t_gui_buffer *buffer)
|
||||
{
|
||||
t_gui_window *ptr_win;
|
||||
t_gui_line *ptr_line;
|
||||
|
||||
if (!buffer)
|
||||
return;
|
||||
|
||||
if (buffer->type == BUFFER_TYPE_DCC)
|
||||
return;
|
||||
|
||||
/* remove buffer from hotlist */
|
||||
hotlist_remove_buffer (buffer);
|
||||
|
||||
Reference in New Issue
Block a user