author | wenzelm |
Thu, 29 Aug 2013 22:08:02 +0200 | |
changeset 53295 | 45be26b98ca6 |
parent 53294 | 814eee60e1b1 |
child 53296 | 65c60c782da5 |
--- a/src/Pure/Isar/completion.scala Thu Aug 29 21:53:29 2013 +0200 +++ b/src/Pure/Isar/completion.scala Thu Aug 29 22:08:02 2013 +0200 @@ -105,7 +105,7 @@ } raw_result match { case Some((word, cs)) => - val ds = (if (decode) cs.map(Symbol.decode(_)).sorted else cs).filter(_ != word) + val ds = (if (decode) cs.map(Symbol.decode(_)).sorted else cs) if (ds.isEmpty) None else Some((word, ds.map(s => Completion.Item(word, s, s)))) case None => None