mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
better tab completion for uid
This commit is contained in:
parent
4d8bcf0a92
commit
88a7e1de86
@ -539,7 +539,9 @@ impl TabComplete for ArgumentSpec {
|
||||
})
|
||||
.collect(),
|
||||
"uid" => {
|
||||
if let Ok(end) = u64::from_str(end) {
|
||||
if let Some(end) =
|
||||
u64::from_str(end).ok().or(end.is_empty().then_some(0))
|
||||
{
|
||||
client
|
||||
.state()
|
||||
.ecs()
|
||||
|
Loading…
Reference in New Issue
Block a user