From 2bb7e8d0183b838220663b83e23added77f57b7e Mon Sep 17 00:00:00 2001 From: ivanbrennan Date: Sun, 25 Sep 2022 11:14:50 -0400 Subject: [PATCH] fix(lib): doom-info symlink-path The `if` clauses were swapped, such that a non-symlinked path was shown like, ~/.config/emacs/ -> ~/.config/emacs/ and a symlinked path was shown as, ~/.config/emacs/ --- lisp/lib/debug.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/lib/debug.el b/lisp/lib/debug.el index 0ccf5be4d..43d0bdfbe 100644 --- a/lisp/lib/debug.el +++ b/lisp/lib/debug.el @@ -246,8 +246,9 @@ ready to be pasted in a bug report on github." (abbreviate-file-name path))) (defun symlink-path (file) (format "%s%s" (abbrev-path file) - (if (file-symlink-p file) "" - (concat " -> " (abbrev-path (file-truename file))))))) + (if (file-symlink-p file) + (concat " -> " (abbrev-path (file-truename file))) + "")))) `((generated . ,(format-time-string "%b %d, %Y %H:%M:%S")) (system . ,(delq nil (list (doom-system-distro-version)