The next version of WinSCP will automatically restore the editor options defaults when changing editor command from Notepad to 3rd party editor
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Uncheck the "External editor opens each file in separate window".
Or did you have any reason to check it?