From f915e9a3ab082e19f6a87c3b00ac0b7a65ca7abd Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 16 Apr 2021 19:50:40 +0200 Subject: [PATCH] fix: /set: do not priorize section printing if we detect an option --- poezio/core/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)