summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-16 19:50:40 +0200
committermathieui <mathieui@mathieui.net>2021-04-16 19:54:14 +0200
commitf915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd (patch)
tree873d783fc3aaf8c2eb3e6149a0ca8504b87d98cc
parentc788c9afb8e5770ab0d9696f50776d79b5b372e5 (diff)
downloadpoezio-f915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd.tar.gz
poezio-f915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd.tar.bz2
poezio-f915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd.tar.xz
poezio-f915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd.zip
fix: /set: do not priorize section printing if we detect an option
-rw-r--r--poezio/core/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index adb5404f..9b3d3b1b 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -798,7 +798,7 @@ class CommandCore:
info = ('%s=%s' % (option, value), 'Info')
else:
possible_section = args[0]
- if config.has_section(possible_section):
+ if not config.has_option(possible_section) and config.has_section(possible_section):
section = possible_section
option = args[1]
value = config.get(option, section=section)