class: EditTextView
authorClaus Gittinger <cg@exept.de>
Tue, 30 Jun 2015 14:14:38 +0200
changeset 5367 7696ee76ebe8
parent 5366 58dd6fad6091
child 5368 eccacd90610c
class: EditTextView changed: #validateCursorLine: fix: edit bug when deleting selection
EditTextView.st
--- a/EditTextView.st	Sun Jun 28 03:54:33 2015 +0000
+++ b/EditTextView.st	Tue Jun 30 14:14:38 2015 +0200
@@ -2534,10 +2534,12 @@
 
     "/
     "/ in st80Mode, the cursor may not be positioned
-    "/ beyond the last line
+    "/ beyond the last line 
+    "/ (but it must be posible to place it on one line below the last one 
+    "/ - otherwise deleteSelection and some others fail to delete from previousToLastLine)
     "/
     self st80EditMode ifTrue:[
-        ^ (line min:(list size)) max:1
+        ^ (line min:(list size + 1)) max:1
     ].
     ^ line