wmiirc-rumai

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

commit dd46aa16be0593c310b5fc198860d0c22e404395
parent 7a47d7d7e49158d454bffce0a08fdbc43134e794
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Sun, 10 Sep 2006 18:46:19 -0700

[project @ 3e36ab8b7dd23f186803af60565fe2e884a7e589]

[project @ 50]
up  IxpFs.read now returns an array of directory entries

Diffstat:
fs.rb | 4++--
wm.rb | 6+++---
wmiirc | 2+-
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs.rb b/fs.rb @@ -58,10 +58,10 @@ module IxpFs def self.read aPath open(aPath) do |f| if f.is_a? IXP::Directory - names = '' + names = [] while i = f.next - names << i.name << "\n" + names << i.name end names diff --git a/wm.rb b/wm.rb @@ -55,7 +55,7 @@ class Container < IxpNode # Returns a list of indices of items in this region. def indices if list = self.read - list.split.grep(/^\d+$/) + list.grep(/^\d+$/) else [] end @@ -310,7 +310,7 @@ class Wmii < Container DETACHED_TAG = 'status' def initialize - super IxpNode, View, '/' + super IxpNode, IxpNode, '/' end @@ -333,7 +333,7 @@ class Wmii < Container # Returns the current set of tags. def tags - IxpFs.read('/tags').split + self['/tags'].split end # Returns the current set of views. diff --git a/wmiirc b/wmiirc @@ -439,7 +439,7 @@ begin client, button = arg.split if button.to_i == 3 - Wmii::Client.new("/client/#{client}").invert_selection! + Client.new("/client/#{client}").invert_selection! end when 'Key'