mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
List exterior cell names in tab completion (Fixes #2252)
This commit is contained in:
parent
afc961d19c
commit
464f8abb3f
@ -102,8 +102,20 @@ namespace MWGui
|
||||
it->second->listIdentifier (mNames);
|
||||
}
|
||||
|
||||
// exterior cell names aren't technically identifiers, but since the COC function accepts them,
|
||||
// we should list them too
|
||||
for (MWWorld::Store<ESM::Cell>::iterator it = store.get<ESM::Cell>().extBegin();
|
||||
it != store.get<ESM::Cell>().extEnd(); ++it)
|
||||
{
|
||||
if (!it->mName.empty())
|
||||
mNames.push_back(it->mName);
|
||||
}
|
||||
|
||||
// sort
|
||||
std::sort (mNames.begin(), mNames.end());
|
||||
|
||||
// remove duplicates
|
||||
mNames.erase( std::unique( mNames.begin(), mNames.end() ), mNames.end() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user