Permalink
Browse files

Ignore Emacs autosave files

  • Loading branch information...
1 parent 7ed5aa2 commit 7c9b278927cfed60dc0348edf888b4260c19f464 @sstephenson committed Jul 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hike/index.rb
View
@@ -70,7 +70,7 @@ def find(*logical_paths, &block)
# not exist.
def entries(path)
key = path.to_s
- @entries[key] ||= Pathname.new(path).entries.reject { |entry| entry.to_s =~ /^\.|~$/ }
+ @entries[key] ||= Pathname.new(path).entries.reject { |entry| entry.to_s =~ /^\.|~$|^\#.*\#$/ }
rescue Errno::ENOENT
@entries[key] = []
end

0 comments on commit 7c9b278

Please sign in to comment.