Fix fencepost bug.
authorChris Hanson <org/chris-hanson/cph>
Sat, 16 Oct 1993 12:17:49 +0000 (12:17 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 16 Oct 1993 12:17:49 +0000 (12:17 +0000)
v7/src/edwin/image.scm

index da4c6baa998bf2318f2f0cad3139d00900248402..1b5605faada2b265d20831cdd2e6a883ee5d97da 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Id: image.scm,v 1.130 1993/01/12 10:50:40 cph Exp $
+;;;    $Id: image.scm,v 1.131 1993/10/16 12:17:49 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
 ;;;
                  (substring-column->index text start gap-start
                                           start-column column tab-width)))
             (if (and (fix:< (vector-ref result 1) column)
-                     (not (char=? #\newline
-                                  (string-ref text (vector-ref result 0)))))
+                     (fix:= (vector-ref result 0) gap-start))
                 (let ((result
                        (substring-column->index text
                                                 gap-end