TextCollector.st
changeset 6114 f1a6c00aa715
parent 6112 14fe1826a075
child 6162 958615859654
--- 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