From 2c674a54d400f28753ddf3f65811fc197ea06273 Mon Sep 17 00:00:00 2001 From: Tobias Rehbein Date: Sat, 17 Apr 2021 23:32:59 +0200 Subject: [PATCH] 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. --- doc/en/weechat_user.en.adoc | 8 ++++---- 1 file 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]]