Merge pull request #4906 from curry684/platform-editor

Prefer 'editor' on a system that supports alternatives
main
Jordi Boggiano 9 years ago
commit c8b4978f5a

@ -188,7 +188,7 @@ EOT
if (Platform::isWindows()) { if (Platform::isWindows()) {
$editor = 'notepad'; $editor = 'notepad';
} else { } else {
foreach (array('vim', 'vi', 'nano', 'pico', 'ed') as $candidate) { foreach (array('editor', 'vim', 'vi', 'nano', 'pico', 'ed') as $candidate) {
if (exec('which '.$candidate)) { if (exec('which '.$candidate)) {
$editor = $candidate; $editor = $candidate;
break; break;

Loading…
Cancel
Save