Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scan_for_focus_path should return an empty array if path is a directory #7

Merged
merged 1 commit into from
Jan 7, 2013

Commits on Jan 4, 2013

  1. scan_for_focus_path should return an empty array if path is a directory

    When I have set `focus_on`, and I run all tests, then a directory path may be sent to Focuser#scan_for_focus_path. This method tries to call File#gets on the path, and ruby throws a "Is a directory" error.
    
    This patch simply returns an empty array if the file is a directory.
    martin.cortez committed Jan 4, 2013
    Configuration menu
    Copy the full SHA
    d3298f9 View commit details
    Browse the repository at this point in the history