]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-dired-purge): Avoid error from `kill-line'.
authorMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 24 Dec 2003 23:18:10 +0000 (23:18 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 24 Dec 2003 23:18:10 +0000 (23:18 +0000)
lisp/vc.el

index 4ee2739100388414bfe82001e9040ba1c0878c03..b015d56c87f053caff8ce0403ea70e79ac10ef5d 100644 (file)
@@ -7,7 +7,7 @@
 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
 ;; Keywords: tools
 
-;; $Id: vc.el,v 1.359 2003/07/06 19:08:13 jpw Exp $
+;; $Id: vc.el,v 1.360 2003/09/01 15:45:17 miles Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -2144,7 +2144,7 @@ Called by dired after any portion of a vc-dired buffer has been read in."
        ;; We cannot remove the top level directory.
        ;; Just make it look a little nicer.
        (forward-line 1)
-       (kill-line)
+       (or (eobp) (kill-line))
        (if (not (dired-next-subdir 1 t))
            (goto-char (point-max))))))
   (goto-char (point-min)))