wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 6dbea04dbdf03ad0d49fe50c38104d7ec7f503be
parent e42fe3e0197555a1e346f4d1f8d69e59ef90f754
Author: wabu <waeber@inf.fu-berlin.de>
Date:   Wed, 13 May 2009 16:08:00 +0200

fixed status/refresh command to ignore position value of bar

Diffstat:
config.rb | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.rb b/config.rb @@ -205,7 +205,6 @@ class Button < Thread # def initialize fs_bar_node, refresh_rate, &button_label raise ArgumentError, 'block must be given' unless block_given? - super(fs_bar_node) do |button| while true label = @@ -320,6 +319,8 @@ def load_config config_file # Refreshes the content of the status button with the given name. # def status name + name = name.sub(/^\d+-/,'') + if button = @status_button_by_name[name] button.refresh end