#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sat, 13 Jan 2018 11:47:39 +0100
changeset 6249 bc2cc528500c
parent 6248 74cd4f46a0d8
child 6250 30d1669982cb
#BUGFIX by cg class: EditTextView changed: #indentFromLine:toLine:by: did not undent by N, if the line was exactly N+1 characters long
EditTextView.st
--- a/EditTextView.st	Mon Jan 01 11:07:39 2018 +0100
+++ b/EditTextView.st	Sat Jan 13 11:47:39 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
               All Rights Reserved
@@ -6277,11 +6279,11 @@
                     ]
                 ] ifFalse:[
                     "check if deletion is ok"
-                    d := delta negated + 1.
+                    d := delta negated.
 
                     line size > d ifTrue:[
-                        (line copyTo:(d - 1)) withoutSeparators isEmpty ifTrue:[
-                            line := line copyFrom:d
+                        (line copyTo:d) withoutSeparators isEmpty ifTrue:[
+                            line := line copyFrom:(d+1)
                         ]
                     ].
                     widthOfWidestLine := nil