Fix FILL-DIRED-BUFFER! bug that caused "~" command (and probably
authorArthur Gleckler <edu/mit/csail/zurich/arthur>
Wed, 7 Aug 1991 19:09:03 +0000 (19:09 +0000)
committerArthur Gleckler <edu/mit/csail/zurich/arthur>
Wed, 7 Aug 1991 19:09:03 +0000 (19:09 +0000)
others) to fail.

v7/src/edwin/dired.scm

index 2eb7357f6cc3e525ebb47070e4fd655768d343c4..2d45bb30fdd302a82d1065f88503e1b67f3a4bd8 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/dired.scm,v 1.112 1991/08/06 15:38:01 arthur Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/dired.scm,v 1.113 1991/08/07 19:09:03 arthur Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
 ;;;
@@ -184,9 +184,9 @@ CANNOT contain the 'F' option."
          (let loop ((index index))
            (set-mark-index! point index)
            (group-insert-string! group index "  ")
-           (let ((index (line-end-index group (mark-index point))))
+           (let ((index (1+ (line-end-index group (mark-index point)))))
              (if (not (group-end-index? group index))
-                 (loop (+ index 1))))))))
+                 (loop index)))))))
   (set-buffer-point! buffer (buffer-start buffer))
   (buffer-not-modified! buffer)
   (set-buffer-read-only! buffer))