Permalink
Browse files

Make the Colorize class work again.

git-svn-id: http://svn.macosforge.org/repository/ruby/DietRB/trunk@4853 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
alloy committed Oct 31, 2010
1 parent 052972f commit db9a497e724229daed825118dd8299f447495aeb
Showing with 3 additions and 2 deletions.
  1. +1 −0 TODO
  2. +2 −2 lib/irb/ext/colorize.rb
View
1 TODO
@@ -1,3 +1,4 @@
+* Move auto_indent option to formatter
* Complete file paths in strings (for require etc).
* Write docs for using a as library. Probably right after creating a Cocoa client.
* Write a not useless README.
View
@@ -169,7 +169,7 @@ def colorize(str)
Ripper.lex(str).map { |_, type, token| colorize_token(type, token) }.join
end
- def prompt(context)
+ def prompt(context, indent = false)
colorize_token(:prompt, super)
end
@@ -183,4 +183,4 @@ def result(object)
end
end
-IRB.formatter = IRB::ColoredFormatter.new
+IRB.formatter = IRB::ColoredFormatter.new

0 comments on commit db9a497

Please sign in to comment.