#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 24 Jan 2017 12:24:19 +0100
changeset 5419 7ba6ce8016c2
parent 5418 6daf3c670147
child 5420 ca55021599d4
#REFACTORING by cg class: DoWhatIMeanSupport changed: #codeCompletionForMessage:into:
DoWhatIMeanSupport.st
--- a/DoWhatIMeanSupport.st	Sat Jan 21 15:39:03 2017 +0100
+++ b/DoWhatIMeanSupport.st	Tue Jan 24 12:24:19 2017 +0100
@@ -2308,7 +2308,7 @@
         ].
     ].
  
-    allBest := (bestSelectors ? #()) , (bestSelectors2 ? #()).
+    allBest := (bestSelectors ? #()) , (bestSelectors2 ? #()) asOrderedCollection.
     self sortSelectors:allBest forSelector:selector lcSelector:lcSelector.
                         
     "/ sort: prefixes first.
@@ -2330,8 +2330,7 @@
                 (mSel startsWith:selector) ifTrue:[
                     "/ already the word before the cursor?
                     (mSel ~= selector) ifTrue:[
-                        allBest remove:mSel ifAbsent:[].
-                        allBest addFirst:mSel.
+                        allBest removeAndAddFirst:mSel.
                     ]
                 ]
             ]