summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-12-20 11:25:34 +0100
committerAleš Mrázek <ales.mrazek@nic.cz>2024-12-20 22:24:22 +0100
commite84f613015a53df123ffd5d0f750ff8c6f285d4e (patch)
treea94239e2e6bbdf57c76d499519b786bf227893c9
parentutils/shell-completion/meson.build: install client.bash on a system (diff)
downloadknot-resolver-e84f613015a53df123ffd5d0f750ff8c6f285d4e.tar.xz
knot-resolver-e84f613015a53df123ffd5d0f750ff8c6f285d4e.zip
python: client: completion: config: remove COMP_NOSPACE for last node
-rw-r--r--python/knot_resolver/client/commands/config.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/knot_resolver/client/commands/config.py b/python/knot_resolver/client/commands/config.py
index 69f7edfa..d13d24d9 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}"