Skip to content

Commit

Permalink
* ivy-rich.el: use correct function to get directory (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
ury-marshak authored Feb 28, 2023
1 parent 600b818 commit 4fdd466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy-rich.el
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ or /a/…/f.el."
;; if valid filename, i.e. buffer visiting file:
(if fn
;; return containing directory
(directory-file-name fn)
(file-name-directory fn)
;; else if mode explicitly offering list-buffers-directory, return that; else nil.
;; buffers that don't explicitly visit files, but would like to show a filename,
;; e.g. magit or dired, set the list-buffers-directory variable
Expand Down

0 comments on commit 4fdd466

Please sign in to comment.