#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 12 Oct 2018 12:08:13 +0200
changeset 6452 180a72d98a19
parent 6451 fbed28a55482
child 6453 b98c935b55aa
#FEATURE by cg class: EditTextView comment/format in: #getTextSelectionFromHistory changed: #pasteOrReplaceFromHistory paste from history moves that item to the top of the history list.
EditTextView.st
--- a/EditTextView.st	Wed Oct 10 18:24:39 2018 +0200
+++ b/EditTextView.st	Fri Oct 12 12:08:13 2018 +0200
@@ -6991,6 +6991,8 @@
     |sel listOfPasteTextLines box history|
 
     history := device getCopyBufferHistory copy.
+
+    "/ the list presents each first line only
     listOfPasteTextLines := 
         history collect:[:entry |
             |text shown|
@@ -7478,6 +7480,8 @@
 
     text := self getTextSelectionFromHistory.
     text notNil ifTrue:[
+        "/ move to top of list.
+        device rememberInCopyBufferHistory:text.
         self pasteOrReplace:text
     ]