Skip to content

Commit

Permalink
Ruby 1.9 fix (String#to_a no longer exists in 1.9)
Browse files Browse the repository at this point in the history
Reported by Michael Henry.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information
wincent committed Apr 11, 2010
1 parent 45cc254 commit e516227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/command-t/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def register_for_key_presses
if override = get_string("g:CommandT#{key}Map")
map override, key
else
value.to_a.each do |mapping|
[value].flatten.each do |mapping|
map mapping, key unless mapping == '<Esc>' && (xterm? || vt100?)
end
end
Expand Down

0 comments on commit e516227

Please sign in to comment.