Skip to content

Commit b9e99ab

Browse files
Christopher Schmidtlarsmagne
authored andcommitted
Always expand "total" in dired
* lisp/files.el (insert-directory): Always replace "total" with "total used in directory", even when we don't have free disk space (bug#13191). This makes the display more consistent.
1 parent 311ca03 commit b9e99ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lisp/files.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7153,10 +7153,11 @@ normally equivalent short `-D' option is just passed on to
71537153
(goto-char beg)
71547154
;; First find the line to put it on.
71557155
(when (re-search-forward "^ *\\(total\\)" nil t)
7156+
;; Replace "total" with "total used in directory" to
7157+
;; avoid confusion.
7158+
(replace-match "total used in directory" nil nil nil 1)
71567159
(let ((available (get-free-disk-space ".")))
71577160
(when available
7158-
;; Replace "total" with "used", to avoid confusion.
7159-
(replace-match "total used in directory" nil nil nil 1)
71607161
(end-of-line)
71617162
(insert " available " available))))))))))
71627163

0 commit comments

Comments
 (0)