The Win32 editor detection in pywikibot/config2.py looks for registry entries such as
"Foo.exe" "%1"
It detects the "%1 , and discards everything after it because it pywikibot/editor.py assumes it is a single command.
This is probably a Win32-only problem, however the same problem will occur if the environment variable EDITOR contains additional arguments.