From: Arthur Gleckler Date: Wed, 7 Aug 1991 19:09:03 +0000 (+0000) Subject: Fix FILL-DIRED-BUFFER! bug that caused "~" command (and probably X-Git-Tag: 20090517-FFI~10389 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=558a21f21aa0f01c57bf4b2f7be4e18aec708f91;p=mit-scheme.git Fix FILL-DIRED-BUFFER! bug that caused "~" command (and probably others) to fail. --- diff --git a/v7/src/edwin/dired.scm b/v7/src/edwin/dired.scm index 2eb7357f6..2d45bb30f 100644 --- a/v7/src/edwin/dired.scm +++ b/v7/src/edwin/dired.scm @@ -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))