diff options
Diffstat (limited to 'lib/irb/locale.rb')
-rw-r--r-- | lib/irb/locale.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 4b6aba2bb9..8a0f33d8fb 100644 --- a/lib/irb/locale.rb +++ b/lib/irb/locale.rb @@ -153,8 +153,8 @@ module IRB end def search_file(path, file) - if File.exists?(p1 = path + lc_path(file, "C")) - if File.exists?(p2 = path + lc_path(file)) + if File.exist?(p1 = path + lc_path(file, "C")) + if File.exist?(p2 = path + lc_path(file)) return p2 else end |