diff --git a/ruby/command-t/vim/path_utilities.rb b/ruby/command-t/vim/path_utilities.rb index 3953c24d..90bd6b7c 100644 --- a/ruby/command-t/vim/path_utilities.rb +++ b/ruby/command-t/vim/path_utilities.rb @@ -20,7 +20,7 @@ def nearest_ancestor(starting_directory, markers) path = File.expand_path(starting_directory) while !markers. map { |dir| File.join(path, dir) }. - map { |dir| File.directory?(dir) }. + map { |dir| File.exist?(dir) }. any? return nil if path == '/' path = File.expand_path(File.join(path, '..'))