TextView.st
branchjv
changeset 5395 fc9336b15c5c
parent 5386 26b17b83a19b
parent 5391 98080a3105ae
child 5417 213089a29fb8
--- a/TextView.st	Thu Jul 30 06:49:25 2015 +0200
+++ b/TextView.st	Sun Aug 09 07:20:03 2015 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -4824,7 +4826,7 @@
 
     selectionStartLine isNil ifTrue:[^ nil].
     sel := self textFromLine:selectionStartLine col:(selectionStartCol max:1) toLine:selectionEndLine col:selectionEndCol.
-    sel notNil ifTrue:[
+    sel notEmptyOrNil ifTrue:[
 	(gc characterEncoding ? #'iso10646-1' "eg unicode") ~~ #'iso10646-1' ifTrue:[
 	    sel := sel encodeFrom:gc characterEncoding into:#'iso10646-1'
         ].