Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use default-directory instead of buffer-file-name

buffer-file-name doesn't work for non-file buffers (like shell buffers).
  • Loading branch information...
commit 59d384c895f18b885a250291f5ba394f3bf6cb5d 1 parent 5a1afdf
@shosti shosti authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  rbenv.el
View
2  rbenv.el
@@ -157,7 +157,7 @@
(defun rbenv--locate-file (file-name)
"searches the directory tree for an given file. Returns nil if the file was not found."
- (let ((directory (locate-dominating-file (expand-file-name buffer-file-name) file-name)))
+ (let ((directory (locate-dominating-file default-directory file-name)))
(when directory (concat directory file-name))))
(defun rbenv--call-process (&rest args)
Please sign in to comment.
Something went wrong with that request. Please try again.