Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use filereadable() instead of glob() to detect whether a file exists.
glob() reports false positives if the filename has metacharacters in it (e.g., "[...]"), which causes Vim to incorrectly open a new, blank buffer instead of the specified file. Closes #12 Signed-off-by: James McCoy <vega.james@gmail.com>
- Loading branch information