--- 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(_ < _))
}