From 4d9480cbbb52c19af714578b4801a325cf6bce8a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 25 Dec 2012 18:10:46 +0000 Subject: [PATCH] * remove trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++-- lib/irb/ruby-lex.rb | 2 +- lib/irb/workspace.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3f70714e6c..72a5e33bdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ Wed Dec 26 01:31:16 2012 Keiju Ishitsuka - * lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level= - [Bug #6301] and fix irb command option: -- irb_debug_level for irb. + * lib/irb/init.rb, lib/irb/context.rb: fix conf.debug_level= + [Bug #6301] and fix irb command option: -- irb_debug_level for irb. Wed Dec 26 00:59:18 2012 Keiju Ishitsuka diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 239d6b1d86..295dc9fa06 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -153,7 +153,7 @@ class RubyLex if c == "\n" @line_no -= 1 if idx = @readed.rindex("\n") - @char_no = idx + 1 + @char_no = idx + 1 else @char_no = @base_char_no + @readed.size end diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 1c30105453..65214a2217 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -48,7 +48,7 @@ EOF Thread.pass end @binding = BINDING_QUEUE.pop - + when 3 # binging in function on TOPLEVEL_BINDING(default) @binding = eval("def irb_binding; private; binding; end; irb_binding", TOPLEVEL_BINDING,