1
0
Fork 0

Prefer 'editor' on a system that supports alternatives.

pull/4906/head
Niels Keurentjes 2016-02-11 09:24:42 +01:00
parent 8808638ea9
commit 93ce87a84e
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;