summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobert <therobot.johnny5@gmail.com>2014-04-01 07:05:54 +0200
committerRyan Fitzgerald <rwfitzge@gmail.com>2014-04-27 14:13:08 -0700
commitf6873cd9f568151068e2e52be4d9845a82046c5d (patch)
treeb700a3658ee0adeb7f9fef0fc5ec03aa84a4b851
parent0db9882926675780078f3ded6842d9f2e8480c5c (diff)
downloadpry-f6873cd9f568151068e2e52be4d9845a82046c5d.tar.gz
keep the same order for exec hook before last commit
-rw-r--r--lib/pry/pry_instance.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb
index daf99533..2c7f71fc 100644
--- a/lib/pry/pry_instance.rb
+++ b/lib/pry/pry_instance.rb
@@ -75,10 +75,10 @@ class Pry
@input_array = Pry::HistoryArray.new config.memory_size
@output_array = Pry::HistoryArray.new config.memory_size
@custom_completions = config.command_completions
- push_initial_binding(target)
- exec_hook(:when_started, target, options, self)
set_last_result nil
@input_array << nil
+ push_initial_binding(target)
+ exec_hook(:when_started, target, options, self)
end
# The current prompt.