mercurial/commands.py
changeset 14271 4030630fb59c
parent 14260 00a881581400
child 14279 b039b667515d
--- a/mercurial/commands.py	Sun May 08 16:16:41 2011 -0500
+++ b/mercurial/commands.py	Sun May 08 20:35:46 2011 +0200
@@ -1648,7 +1648,7 @@
     # editor
     ui.status(_("Checking commit editor...\n"))
     editor = ui.geteditor()
-    cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0])
+    cmdpath = util.findexe(editor) or util.findexe(editor.split()[0])
     if not cmdpath:
         if editor == 'vi':
             ui.write(_(" No commit editor set and can't find vi in PATH\n"))