summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2019-04-28 20:12:10 +0300
committerGitHub <noreply@github.com>2019-04-28 20:12:10 +0300
commit8623d6851dad1e2833c1fd31e4f07d2d19b8e4c3 (patch)
tree4e10d07301b0cd01b0c1e2b7fb8e7d970067d38b
parent13c27239883ea0333a8a2cf17a12c2f350d14656 (diff)
parent14b5b777ec6db4d6d67eca5b5bd23fc3fca71f44 (diff)
downloadpry-8623d6851dad1e2833c1fd31e4f07d2d19b8e4c3.tar.gz
Merge pull request #2018 from pry/watch-expression-state
commands/watch_expression: use command state instead of config
-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)