]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-ls-file): Instead of making the size field in a long-listing
authorJohn Wiegley <johnw@newartisans.com>
Sun, 16 Nov 2003 09:23:49 +0000 (09:23 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Sun, 16 Nov 2003 09:23:49 +0000 (09:23 +0000)
always 8 characters, use `size-width', which has already been
computed.

lisp/eshell/em-ls.el

index aced22233279cbb666b60831b866eb347d3f325f..1d018026e67981a959298a72b9da4b19562edf6b 100644 (file)
@@ -480,8 +480,8 @@ whose cdr is the list of file attributes."
                     ""))
                (let* ((str (eshell-ls-printable-size (nth 7 attrs)))
                       (len (length str)))
-                 (if (< len 8)
-                     (concat (make-string (- 8 len) ? ) str)
+                 (if (< len size-width)
+                     (concat (make-string (- size-width len) ? ) str)
                    str))
                " " (format-time-string
                     (concat