]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix output alignment in 'find-dired' for "ls -h"
authorSebastian Reuße <seb@wirrsal.net>
Sat, 30 Dec 2017 10:41:23 +0000 (12:41 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 Dec 2017 10:41:23 +0000 (12:41 +0200)
* lisp/find-dired.el (find-dired-filter): Fix alignment of
the file size column when the -h ls option is used in
'find-ls-option'.  (Bug#29803)

Copyright-paperwork-exempt: yes

lisp/find-dired.el

index 3b0613b28065671267b3398dc883f3003ed26f67..bf815d500d0c07d9553ee4e22d02b8832b986e78 100644 (file)
@@ -295,7 +295,7 @@ specifies what to use in place of \"-ls\" as the final argument."
                    (l-opt (and (consp find-ls-option)
                                (string-match "l" (cdr find-ls-option))))
                    (ls-regexp (concat "^ +[^ \t\r\n]+\\( +[^ \t\r\n]+\\) +"
-                                      "[^ \t\r\n]+ +[^ \t\r\n]+\\( +[0-9]+\\)")))
+                                      "[^ \t\r\n]+ +[^ \t\r\n]+\\( +[^[:space:]]+\\)")))
                (goto-char beg)
                (insert string)
                (goto-char beg)