fix: /set: do not priorize section printing if we detect an option

This commit is contained in:
mathieui 2021-04-16 19:50:40 +02:00
parent c788c9afb8
commit f915e9a3ab

View file

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