changeset 47491:ca99f74a4b9d

(dired-move-to-filename): Fix previous change.
author Markus Rost <rost@math.uni-bielefeld.de>
date Sun, 15 Sep 2002 16:34:34 +0000
parents 7a17a8b1cb9b
children 923f7eb1b296
files lisp/dired.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Sun Sep 15 01:53:47 2002 +0000
+++ b/lisp/dired.el	Sun Sep 15 16:34:34 2002 +0000
@@ -1589,7 +1589,8 @@
   ;; First try assuming `ls --dired' was used.
   (let ((change (next-single-property-change (point) 'dired-filename
 					     nil eol)))
-    (if change (goto-char change)
+    (if (and change (< change eol))
+	(goto-char change)
       (if (re-search-forward dired-move-to-filename-regexp eol t)
 	  (goto-char (match-end 0))
 	(if raise-error