From 64dc224faa89bfee11e406a013d3ca77c6f756e8 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 21 Jul 2009 00:31:48 +0200 Subject: fixes --- code/extensions/basic.rb | 4 ++-- code/keys.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/extensions/basic.rb b/code/extensions/basic.rb index 89798ba5..b04dc71d 100644 --- a/code/extensions/basic.rb +++ b/code/extensions/basic.rb @@ -152,8 +152,8 @@ class File::Stat end s = ("%o" % mode)[-3..-1] - for m in s.each_byte - result << MODES_HASH[m] + for m in s.each_byte do + result << MODES_HASH[m.chr] end result diff --git a/code/keys.rb b/code/keys.rb index 963b87bb..eb4f086a 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -759,7 +759,7 @@ module Fm if token =~ /^\/(.*)\/$/ ary << $1 elsif token.size > 0 - ary << token.each_byte.map {|t| + ary << token.scan(/./).map {|t| if t == '?' t = '\?' end -- cgit 1.4.1-2-gfad0