summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Silin <silin@kyrylo.org>2020-03-20 19:22:14 +0800
committerGitHub <noreply@github.com>2020-03-20 19:22:14 +0800
commit68ee107c58d3f65575a1a1fa26c014b16286b888 (patch)
tree07afaaa6556aee495a778286f4cecbf11f2dc07a
parent6462ae85ea2842fe31ec28ff223ce4c848e31f65 (diff)
parentc6b014839aaee608ea44617720247de752e968a4 (diff)
downloadpry-68ee107c58d3f65575a1a1fa26c014b16286b888.tar.gz
Merge pull request #2111 from pry/file-and-line-locator-refactoring
commands/edit/file_and_line_locator: refactor eval expression
-rw-r--r--lib/pry/commands/edit/file_and_line_locator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/edit/file_and_line_locator.rb b/lib/pry/commands/edit/file_and_line_locator.rb
index e3b8a616..2d0f7713 100644
--- a/lib/pry/commands/edit/file_and_line_locator.rb
+++ b/lib/pry/commands/edit/file_and_line_locator.rb
@@ -9,7 +9,7 @@ class Pry
if target.respond_to?(:source_location)
target.source_location
else
- [target.eval("__FILE__"), target.eval("__LINE__")]
+ target.eval("[__FILE__, __LINE__]")
end
end