#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Thu, 02 Mar 2017 12:10:53 +0100
changeset 6114 f1a6c00aa715
parent 6113 8731509a4171
child 6115 b2a6f6a08d2f
#BUGFIX by stefan class: TextCollector changed: #checkLineLimit https://expeccoalm.exept.de/D182049 DNU in TextCollector >>#clear
TextCollector.st
--- a/TextCollector.st	Tue Feb 28 15:52:09 2017 +0100
+++ b/TextCollector.st	Thu Mar 02 12:10:53 2017 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -519,6 +521,11 @@
 
     |nDel newCursorLine|
 
+    list isEmptyOrNil ifTrue:[
+        "no lines"
+        ^ self.
+    ].
+
     lineLimit notNil ifTrue:[
         (cursorLine > lineLimit) ifTrue:[
             nDel := list size - lineLimit.
@@ -542,6 +549,7 @@
     ].
 
     "Modified: / 26-07-2006 / 16:02:15 / fm"
+    "Modified: / 02-03-2017 / 12:02:03 / stefan"
 !
 
 installDelayedUpdate