1
0
Fork 0

Merge pull request #4906 from curry684/platform-editor

Prefer 'editor' on a system that supports alternatives
pull/4905/merge
Jordi Boggiano 2016-02-11 11:01:26 +00:00
commit c8b4978f5a
1 changed files with 1 additions and 1 deletions

View File

@ -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;