changeset 52542 | 8986a3a8147a |
parent 52426 | 22129ce9f86d |
child 52581 | cc918741a22a |
--- a/mercurial/ui.py Mon Dec 16 10:52:01 2024 -0500 +++ b/mercurial/ui.py Tue Dec 17 19:21:15 2024 -0500 @@ -2093,6 +2093,9 @@ # command. Proof: `vi -c ':unknown' -c ':qa'; echo $?` produces 1, # while s/vi/vim/ doesn't. editor = b'vim' + elif pycompat.iswindows: + # vi isn't installed by on Windows, while notepad.exe is. + editor = b'notepad.exe' else: editor = b'vi' return encoding.environ.get(b"HGEDITOR") or self.config(