changeset 47831:6bb5a8b3bbd3

(dired-insert-directory): Fix check for indentation from ls --dired.
author André Spiegel <spiegel@gnu.org>
date Thu, 10 Oct 2002 22:30:26 +0000
parents ac4ceed3bbaf
children 7841a27aef3c
files lisp/dired.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Thu Oct 10 22:05:02 2002 +0000
+++ b/lisp/dired.el	Thu Oct 10 22:30:26 2002 +0000
@@ -701,7 +701,7 @@
     ;; 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)))