better tab completion for uid

This commit is contained in:
Isse 2023-11-23 11:08:21 +01:00
parent 4d8bcf0a92
commit 88a7e1de86

View File

@ -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()