From 62f0b95812369f7c45e3956b2623fb7a64bcdbcf Mon Sep 17 00:00:00 2001 From: John Mair Date: Mon, 30 May 2011 03:36:31 +1200 Subject: [PATCH] fixed CommandContext#run for ALL commands, including regex. Using CommandProcessor approach --- lib/pry/command_context.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pry/command_context.rb b/lib/pry/command_context.rb index d69a21cd..7807a1fc 100644 --- a/lib/pry/command_context.rb +++ b/lib/pry/command_context.rb @@ -11,8 +11,9 @@ class Pry attr_accessor :command_set attr_accessor :command_processor - def run(name, *args) - command_set.run_command(self, name, *args) + def run(command_string, *args) + complete_string = "#{command_string} #{args.join(" ")}" + command_processor.process_commands(complete_string, eval_string, target) end def commands