mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
vim -> vi.
Not all Linux machines have vim preinstalled (example: Ubuntu 12.04). All machines have vi though. And it's actually vim but stripped down. BUG= Review URL: https://codereview.chromium.org/101823005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239488 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -797,7 +797,7 @@ def GetEditor(git, git_editor=None):
|
||||
- core.editor git configuration variable (if supplied by git-cl)
|
||||
- VISUAL environment variable
|
||||
- EDITOR environment variable
|
||||
- vim (non-Windows) or notepad (Windows)
|
||||
- vi (non-Windows) or notepad (Windows)
|
||||
|
||||
In the case of git-cl, this matches git's behaviour, except that it does not
|
||||
include dumb terminal detection.
|
||||
@@ -817,7 +817,7 @@ def GetEditor(git, git_editor=None):
|
||||
if sys.platform.startswith('win'):
|
||||
editor = 'notepad'
|
||||
else:
|
||||
editor = 'vim'
|
||||
editor = 'vi'
|
||||
return editor
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user