summaryrefslogtreecommitdiff
path: root/doc/en/weechat_user.en.adoc
diff options
context:
space:
mode:
authorTobias Rehbein <tobias.rehbein@web.de>2021-04-17 23:32:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-04-18 12:00:29 +0200
commit2c674a54d400f28753ddf3f65811fc197ea06273 (patch)
tree42a1007e7c538f61abc96f276f7fc49744e41dea /doc/en/weechat_user.en.adoc
parent2fbedfec1a05814abf60853fcafecfef3c194f2b (diff)
downloadweechat-2c674a54d400f28753ddf3f65811fc197ea06273.zip
doc: Update weechat.bar.*.condition to use info:term_width
In cf93e953b the `weechat.bar.*.condition` examples have been changed to use `${info:term_width}` instead of `${window.win_width}`. The user guide still shows the old example. This commit syncs the user guide with the on-line help.
Diffstat (limited to 'doc/en/weechat_user.en.adoc')
-rw-r--r--doc/en/weechat_user.en.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc
index efa46a1ce..90ce48cb0 100644
--- a/doc/en/weechat_user.en.adoc
+++ b/doc/en/weechat_user.en.adoc
@@ -1597,17 +1597,17 @@ Following pointers are available:
* `+${buffer}+`: the buffer of window where condition is evaluated
Example to display nicklist bar in all buffers with a nicklist, and only if
-width of window is > 100:
+width of terminal is > 100:
----
-/set weechat.bar.nicklist.conditions "${nicklist} && ${window.win_width} > 100"
+/set weechat.bar.nicklist.conditions "${nicklist} && ${info:term_width} > 100"
----
-Same condition, but always display nicklist on buffer _&bitlbee_ (even if window
+Same condition, but always display nicklist on buffer _&bitlbee_ (even if terminal
is small):
----
-/set weechat.bar.nicklist.conditions "${nicklist} && (${window.win_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"
+/set weechat.bar.nicklist.conditions "${nicklist} && (${info:term_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"
----
[[bare_display]]