File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,12 @@ Use this variable when you don't have the `default-directory' up to date.")
4949 " Add the list of LIST-SIZE items from current directory."
5050 (dashboard-insert-section
5151 " Current Directories:"
52- (let* ((current-dir (if dashboard-ls-path
53- dashboard-ls-path
54- default-directory))
52+ (let* ((current-dir (or dashboard-ls-path default-directory))
5553 (dir-lst (when (f-dir-p current-dir) (f-directories current-dir)))
5654 (opt-dir-lst '()))
5755 (dolist (dir dir-lst)
58- (setq dir (s-replace current-dir " ./" dir))
59- ( setq dir (s-replace " //" " /" dir))
56+ (setq dir (s-replace current-dir " ./" dir)
57+ dir (s-replace " //" " /" dir))
6058 (push (concat dir " /" ) opt-dir-lst))
6159 (reverse opt-dir-lst))
6260 list-size
@@ -68,14 +66,12 @@ Use this variable when you don't have the `default-directory' up to date.")
6866 " Add the list of LIST-SIZE items from current files."
6967 (dashboard-insert-section
7068 " Current Files:"
71- (let* ((current-dir (if dashboard-ls-path
72- dashboard-ls-path
73- default-directory))
69+ (let* ((current-dir (or dashboard-ls-path default-directory))
7470 (file-lst (when (f-dir-p current-dir) (f-files current-dir)))
7571 (opt-file-lst '()))
7672 (dolist (file file-lst)
77- (setq file (s-replace current-dir " ./" file))
78- ( setq file (s-replace " //" " /" file))
73+ (setq file (s-replace current-dir " ./" file)
74+ file (s-replace " //" " /" file))
7975 (push file opt-file-lst))
8076 (reverse opt-file-lst))
8177 list-size
You can’t perform that action at this time.
0 commit comments