Skip to content

Commit 56d3a1a

Browse files
committed
Fix execution
1 parent 0c85bb3 commit 56d3a1a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dashboard-ls.el

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ Use this variable when you don't have the `default-directory' up to date.")
6363
result)
6464
(dolist (dir entries)
6565
(when (file-directory-p (expand-file-name dir current-dir))
66-
(setq dir (concat "./" dir))
66+
(setq dir (concat "/" dir))
6767
(push (concat dir "/") result)))
6868
(reverse result))
6969
list-size
7070
(dashboard-get-shortcut 'ls-directories)
7171
`(lambda (&rest ignore)
72-
(find-file-existing (concat dashboard-ls--record-path ,el)))
72+
(find-file-existing (concat dashboard-ls--record-path "/" ,el)))
7373
(abbreviate-file-name el)))
7474

7575
(defun dashboard-ls--insert-file (list-size)
@@ -81,13 +81,12 @@ Use this variable when you don't have the `default-directory' up to date.")
8181
result)
8282
(dolist (file entries)
8383
(unless (file-directory-p (expand-file-name file current-dir))
84-
(setq file (concat "./" file))
8584
(push file result)))
8685
(reverse result))
8786
list-size
8887
(dashboard-get-shortcut 'ls-files)
8988
`(lambda (&rest ignore)
90-
(find-file-existing (concat dashboard-ls--record-path ,el)))
89+
(find-file-existing (expand-file-name ,el dashboard-ls--record-path)))
9190
(abbreviate-file-name el)))
9291

9392
(provide 'dashboard-ls)

0 commit comments

Comments
 (0)