summaryrefslogtreecommitdiff
path: root/src/plugins/buflist
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-04-20 22:00:17 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-04-20 22:00:17 +0200
commit669ca77c415d98aefdccd31d79842b5a8b0307ca (patch)
treeaa66ae7d2806fb68bdf3d3083b1413cf6273aaba /src/plugins/buflist
parentc946b3e3614fa3c2bd72d9b6cdb7c649319302bb (diff)
downloadweechat-669ca77c415d98aefdccd31d79842b5a8b0307ca.zip
buflist: add example in /help buflist.look.display_conditions
Diffstat (limited to 'src/plugins/buflist')
-rw-r--r--src/plugins/buflist/buflist-config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/buflist/buflist-config.c b/src/plugins/buflist/buflist-config.c
index d5640227a..1933a5a99 100644
--- a/src/plugins/buflist/buflist-config.c
+++ b/src/plugins/buflist/buflist-config.c
@@ -299,7 +299,10 @@ buflist_config_init ()
buflist_config_file, ptr_section,
"display_conditions", "string",
N_("conditions to display a buffer "
- "(note: content is evaluated, see /help buflist)"),
+ "(note: content is evaluated, see /help buflist); for example "
+ "to hide server buffers if they are merged with core buffer: "
+ "\"${buffer.hidden}==0 && ((${type}!=server && "
+ "${buffer.full_name}!=core.weechat) || ${buffer.active}==1)\""),
NULL, 0, 0,
"${buffer.hidden}==0",
NULL, 0,