EditTextView.st
changeset 2018 5a6801e68caa
parent 2017 5d4bf15e09f5
child 2019 b6b078ea3bbf
--- a/EditTextView.st	Mon Sep 20 15:15:22 1999 +0200
+++ b/EditTextView.st	Mon Sep 20 15:21:48 1999 +0200
@@ -3085,11 +3085,13 @@
             ].
             selectStyle := nil.
 
-            undoAction := [
-                            self cursorLine:selStartLine col:selStartCol.
-                            self deleteCharAtCursor.
-                            self paste:sel.    
-                          ].
+            sel size > 0 ifTrue:[
+                undoAction := [
+                                self cursorLine:selStartLine col:selStartCol.
+                                self deleteCharAtCursor.
+                                self paste:sel.    
+                              ].
+            ].
 
             showMatchingParenthesis ifTrue:[
                 "emacs style parenthesis shower"
@@ -4704,5 +4706,5 @@
 !EditTextView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.214 1999-09-20 13:15:22 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/EditTextView.st,v 1.215 1999-09-20 13:21:48 cg Exp $'
 ! !