From 1a5d0c15185986e645e8fb8080a2338d8f17d562 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Wed, 29 Jun 2016 11:47:16 +0900 Subject: [PATCH] Dired recognize dirs when file size in human units * lisp/dired.el (dired-re-inode-size): Update 'dired-re-inode-size' to match when Dired displays the allocated file size column in human readable units (Bug#22255). --- lisp/dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index 38979b5244d..d078478aaaf 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -303,7 +303,7 @@ The directory name must be absolute, but need not be fully expanded.") (put 'dired-actual-switches 'safe-local-variable 'dired-safe-switches-p) -(defvar dired-re-inode-size "[0-9 \t]*" +(defvar dired-re-inode-size "[0-9 \t]*[.,0-9]*[BkKMGTPEZY]?[ \t]*" "Regexp for optional initial inode and file size as made by `ls -i -s'.") ;; These regexps must be tested at beginning-of-line, but are also -- 2.39.2