src/Pure/Thy/completion.scala
changeset 35004 b89a31957950
parent 34141 297b2149077d
child 36012 0614676f14d4
--- a/src/Pure/Thy/completion.scala	Fri Feb 05 20:19:40 2010 +0100
+++ b/src/Pure/Thy/completion.scala	Fri Feb 05 22:07:42 2010 +0100
@@ -88,12 +88,11 @@
     abbrevs_lex.parse(abbrevs_lex.keyword, new Library.Reverse(line)) match {
       case abbrevs_lex.Success(rev_a, _) =>
         val (word, c) = abbrevs_map(rev_a)
-        if (word == c) None
-        else Some(word, List(c))
+        Some(word, List(c))
       case _ =>
         Completion.Parse.read(line) match {
           case Some(word) =>
-            words_lex.completions(word).map(words_map(_)).filter(_ != word) match {
+            words_lex.completions(word).map(words_map(_)) match {
               case Nil => None
               case cs => Some(word, cs.sort(_ < _))
             }