Re: WinSCP removes text file after opening another one
Please make sure you have not turned on "External editor opens each file in separate window (process)":
https://winscp.net/eng/docs/ui_editor_preferences
https://winscp.net/eng/docs/ui_editor_preferences