projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea8490f
)
Allow completion without prefix
author
Marek Safar
<marek.safar@gmail.com>
Wed, 14 Jul 2010 14:54:54 +0000
(14:54 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Wed, 14 Jul 2010 14:54:54 +0000
(14:54 -0000)
svn path=/trunk/mcs/; revision=160360
mcs/mcs/complete.cs
patch
|
blob
|
history
diff --git
a/mcs/mcs/complete.cs
b/mcs/mcs/complete.cs
index ec3663ef2a6133361a445fa7691c06af3b439e6c..ff45ac65b3dbefd6a50daade3277ab931ec3307a 100644
(file)
--- a/
mcs/mcs/complete.cs
+++ b/
mcs/mcs/complete.cs
@@
-32,10
+32,10
@@
namespace Mono.CSharp {
public static void AppendResults (List<string> results, string prefix, IEnumerable<string> names)
{
foreach (string name in names) {
- if (name == null
|| prefix == null
)
+ if (name == null)
continue;
- if (!name.StartsWith (prefix))
+ if (
prefix != null &&
!name.StartsWith (prefix))
continue;
if (results.Contains (name))