Change the command parser and resolver to be able to disambiguate commands
that are a prefix of another command. Fixes "terrain load" Fixes Mantis #31230.6.3-post-fixes
parent
97bc64d8e5
commit
87f328bd30
|
@ -238,6 +238,12 @@ namespace OpenSim.Framework.Console
|
||||||
|
|
||||||
foreach (string opt in current.Keys)
|
foreach (string opt in current.Keys)
|
||||||
{
|
{
|
||||||
|
if (remaining > 0 && opt == s)
|
||||||
|
{
|
||||||
|
found.Clear();
|
||||||
|
found.Add(opt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (opt.StartsWith(s))
|
if (opt.StartsWith(s))
|
||||||
{
|
{
|
||||||
found.Add(opt);
|
found.Add(opt);
|
||||||
|
@ -301,6 +307,12 @@ namespace OpenSim.Framework.Console
|
||||||
|
|
||||||
foreach (string opt in current.Keys)
|
foreach (string opt in current.Keys)
|
||||||
{
|
{
|
||||||
|
if (opt == s)
|
||||||
|
{
|
||||||
|
found.Clear();
|
||||||
|
found.Add(opt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (opt.StartsWith(s))
|
if (opt.StartsWith(s))
|
||||||
{
|
{
|
||||||
found.Add(opt);
|
found.Add(opt);
|
||||||
|
|
Loading…
Reference in New Issue