Merge pull request #4906 from curry684/platform-editor
Prefer 'editor' on a system that supports alternativespull/4905/merge
commit
c8b4978f5a
|
@ -188,7 +188,7 @@ EOT
|
|||
if (Platform::isWindows()) {
|
||||
$editor = 'notepad';
|
||||
} else {
|
||||
foreach (array('vim', 'vi', 'nano', 'pico', 'ed') as $candidate) {
|
||||
foreach (array('editor', 'vim', 'vi', 'nano', 'pico', 'ed') as $candidate) {
|
||||
if (exec('which '.$candidate)) {
|
||||
$editor = $candidate;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue