check for directory? in WeirdMethodLocator#valid_file? prevents crash under jruby
This commit is contained in:
parent
8a6fdfe728
commit
e7d8eb556c
|
@ -164,7 +164,7 @@ class Pry
|
|||
end
|
||||
|
||||
def valid_file?(file)
|
||||
File.exists?(file) || Pry.eval_path == file
|
||||
(File.exists?(file) && !File.directory?(file)) || Pry.eval_path == file
|
||||
end
|
||||
|
||||
def lines_for_file(file)
|
||||
|
|
Loading…
Reference in New Issue