Fix edit() when editor is Sublime with arguments

Example: EDITOR="sublime --wait"
Merge pull request #6865 from jayschwa/fix-sublime-with-args

Fix edit() when editor is Sublime with arguments