_file_ and _dir_ locals now set for edit-method

This commit is contained in:
John Mair 2011-05-05 01:44:54 +12:00
parent 5c964f0ed6
commit 1e655ed1d7
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ e.g: edit-method hello_method
# editor is invoked here # editor is invoked here
else else
file, line = meth.source_location file, line = meth.source_location
set_file_and_dir_locals(file)
if Pry.editor.respond_to?(:call) if Pry.editor.respond_to?(:call)
editor_invocation = Pry.editor.call(file, line) editor_invocation = Pry.editor.call(file, line)