changeset 36309 | 94a1ff16f362 |
parent 36236 | 564dec70b50c |
child 36318 | 3f67c56a5fd7 |
--- a/mercurial/debugcommands.py Sun Feb 18 22:13:25 2018 +0900 +++ b/mercurial/debugcommands.py Sat Feb 17 13:13:04 2018 +0900 @@ -1240,7 +1240,7 @@ # editor editor = ui.geteditor() editor = util.expandpath(editor) - editorbin = pycompat.shlexsplit(editor)[0] + editorbin = pycompat.shlexsplit(editor, posix=not pycompat.iswindows)[0] fm.write('editor', _("checking commit editor... (%s)\n"), editorbin) cmdpath = util.findexe(editorbin) fm.condwrite(not cmdpath and editor == 'vi', 'vinotfound',