summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-04-28 19:52:16 +0300
committerKyrylo Silin <silin@kyrylo.org>2019-04-28 19:52:16 +0300
commit14b5b777ec6db4d6d67eca5b5bd23fc3fca71f44 (patch)
tree4e10d07301b0cd01b0c1e2b7fb8e7d970067d38b
parent13c27239883ea0333a8a2cf17a12c2f350d14656 (diff)
downloadpry-14b5b777ec6db4d6d67eca5b5bd23fc3fca71f44.tar.gz
commands/watch_expression: use command state instead of config
It seems like this command defines options on the config as the user uses Pry. This is wrong. We have command state API for this purpose. Configuration should be done before Pry is initialized.
-rw-r--r--lib/pry/commands/watch_expression.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/watch_expression.rb b/lib/pry/commands/watch_expression.rb
index 4698b4e4..95a41432 100644
--- a/lib/pry/commands/watch_expression.rb
+++ b/lib/pry/commands/watch_expression.rb
@@ -51,7 +51,7 @@ class Pry
private
def expressions
- pry_instance.config.watch_expressions ||= []
+ state.watch_expressions ||= []
end
def delete(index)