Skip to content

Commit

Permalink
Pacify the compiler
Browse files Browse the repository at this point in the history
* doom-modeline-core.el
(doom-modeline--format-buffer-file-truename): Fix warning that
lexical argument shadows the dynamic variable buffer-file-name.
  • Loading branch information
dr-scsi authored and seagle0128 committed Oct 24, 2023
1 parent d975f63 commit 6d2c16e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doom-modeline-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -1444,10 +1444,10 @@ Return `default-directory' if no project was found."
(funcall doom-modeline-buffer-file-name-function buffer-file-name))
buffer-file-name)))

(defun doom-modeline--format-buffer-file-truename (buffer-file-name)
"Get and format buffer file truename' via BUFFER-FILE-NAME."
(defun doom-modeline--format-buffer-file-truename (b-f-n)
"Get and format buffer file truename' via B-F-N."
(let ((buffer-file-truename (file-local-name
(or (file-truename buffer-file-name) ""))))
(or (file-truename b-f-n) ""))))
(or (and doom-modeline-buffer-file-truename-function
(funcall doom-modeline-buffer-file-truename-function buffer-file-truename))
buffer-file-truename)))
Expand Down

0 comments on commit 6d2c16e

Please sign in to comment.