]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-insert-directory): Fix check for indentation from ls --dired.
authorAndré Spiegel <spiegel@gnu.org>
Thu, 10 Oct 2002 22:30:26 +0000 (22:30 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Thu, 10 Oct 2002 22:30:26 +0000 (22:30 +0000)
lisp/dired.el

index 71e4dd35d1932495f4810693c94e983b687fbd0b..6aebd08d4875c790899a48e223d4b9eb7b0fffda 100644 (file)
@@ -701,7 +701,7 @@ If HDR is non-nil, insert a header line with the directory name."
     ;; If we used --dired and it worked, the lines are already indented.
     ;; Otherwise, indent them.
     (unless (save-excursion
-             (forward-line -1)
+             (beginning-of-buffer)
              (looking-at "  "))
       (let ((indent-tabs-mode nil))
        (indent-rigidly opoint (point) 2)))