Close #564 adding a blank arg is a silly idea

This commit is contained in:
md_5 2013-10-09 22:36:44 +11:00
parent 6c14f40108
commit 4685099808

View File

@ -137,18 +137,7 @@ public class PluginManager
return true; return true;
} }
String[] args; String[] args = Arrays.copyOfRange( split, 1, split.length );
// add empty argument for tab completion
if ( commandLine.endsWith( " " ) )
{
args = Arrays.copyOfRange( split, 1, split.length + 1 );
args[ split.length - 1] = "";
} else
{
args = Arrays.copyOfRange( split, 1, split.length );
}
try try
{ {
if ( tabResults == null ) if ( tabResults == null )