From e42bd874b428a60b483ef22a8f71ffb2d8dea95c Mon Sep 17 00:00:00 2001 From: John Mair Date: Sat, 11 Jun 2011 02:12:24 +1200 Subject: [PATCH] fixed bug in command_processor.rb interpolation code, all tests passing now --- lib/pry/command_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/command_processor.rb b/lib/pry/command_processor.rb index 3adf18d0..92e541a5 100644 --- a/lib/pry/command_processor.rb +++ b/lib/pry/command_processor.rb @@ -63,7 +63,7 @@ class Pry begin interp_val = interpolate_string(val, target) rescue NameError - return nil + next end val.replace interp_val if command_regex =~ interp_val