summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-25 10:55:12 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-25 10:55:12 +0100
commit92ec36eced36b0832ce90c417ae1bddbf4a7d2e4 (patch)
treedc9a420531d5309a180b80e2f1e2ddbc53a6c0ca /src/core/wee-command.c
parent8deb0d3612327ba4ca2d0d4f8ae6dc2797915fe8 (diff)
downloadweechat-92ec36eced36b0832ce90c417ae1bddbf4a7d2e4.zip
core: add buffer property "clear"
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 3877f676e..dbbf97a2f 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -598,7 +598,7 @@ COMMAND_CALLBACK(buffer)
ptr_buffer2 = ptr_buffer2->next_buffer)
{
if ((ptr_buffer2->number == ptr_buffer->number)
- && (ptr_buffer2->type == GUI_BUFFER_TYPE_FORMATTED))
+ && ptr_buffer2->clear)
{
gui_buffer_clear (ptr_buffer2);
}
@@ -609,7 +609,7 @@ COMMAND_CALLBACK(buffer)
}
else
{
- if (buffer->type == GUI_BUFFER_TYPE_FORMATTED)
+ if (buffer->clear)
gui_buffer_clear (buffer);
}