From: Aleš Mrázek Date: Fri, 20 Dec 2024 10:25:34 +0000 (+0100) Subject: python: client: completion: config: remove COMP_NOSPACE for last node X-Git-Tag: v6.0.10~7^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84f613015a53df123ffd5d0f750ff8c6f285d4e;p=thirdparty%2Fknot-resolver.git python: client: completion: config: remove COMP_NOSPACE for last node --- diff --git a/python/knot_resolver/client/commands/config.py b/python/knot_resolver/client/commands/config.py index 69f7edfa2..d13d24d95 100644 --- a/python/knot_resolver/client/commands/config.py +++ b/python/knot_resolver/client/commands/config.py @@ -148,6 +148,7 @@ class ConfigCommand(Command): prefix += f"/{node}" is_list = True continue + del words[COMP_NOSPACE] break if is_list and node.isnumeric(): prefix += f"/{node}"