Skip to content

Commit 91e5bc2

Browse files
committed
Prefer new MS Edit command-line text editor on Windows
1 parent 5b5f80e commit 91e5bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def find_editor() -> str | None:
304304
editor = os.environ.get('EDITOR')
305305
if not editor:
306306
if sys.platform[:3] == 'win':
307-
editors = ['code.cmd', 'notepad++.exe', 'notepad.exe']
307+
editors = ['edit', 'code.cmd', 'notepad++.exe', 'notepad.exe']
308308
else:
309309
editors = ['vim', 'vi', 'emacs', 'nano', 'pico', 'joe', 'code', 'subl', 'gedit', 'kate']
310310

0 commit comments

Comments
 (0)