From 9227ba33a075f33cba2bac853caee35c832f2a89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Spiegel?= Date: Thu, 10 Oct 2002 22:30:26 +0000 Subject: [PATCH] (dired-insert-directory): Fix check for indentation from ls --dired. --- lisp/dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index 71e4dd35d19..6aebd08d487 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -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))) -- 2.39.2