summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-16 19:47:35 +0200
committermathieui <mathieui@mathieui.net>2021-04-16 19:53:59 +0200
commitc788c9afb8e5770ab0d9696f50776d79b5b372e5 (patch)
treeaf7f5dd01e5145b5b5ba8505a21d8931f3490c77 /poezio
parentcbc4041746daed2151ec6637a22fae9724e24818 (diff)
downloadpoezio-c788c9afb8e5770ab0d9696f50776d79b5b372e5.tar.gz
poezio-c788c9afb8e5770ab0d9696f50776d79b5b372e5.tar.bz2
poezio-c788c9afb8e5770ab0d9696f50776d79b5b372e5.tar.xz
poezio-c788c9afb8e5770ab0d9696f50776d79b5b372e5.zip
fix: when detecting /set option = value, do the right thing
Previously: this creates a section with the option name, with an option named "=" and the value specified. Then you are stuck because "/set option value" will not work due to the command detecting the section name and only printing the value of [option] value=. Fixes #3517, probably
Diffstat (limited to 'poezio')
-rw-r--r--poezio/core/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 5c3c51f5..adb5404f 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -750,6 +750,8 @@ class CommandCore:
"""
/set [module|][section] <option> [value]
"""
+ if len(args) == 3 and args[1] == '=':
+ args = [args[0], args[2]]
if args is None or len(args) == 0:
config_dict = config.to_dict()
lines = []