Prefer 'editor' on a system that supports alternatives.

main
Niels Keurentjes 8 years ago
parent 8808638ea9
commit 93ce87a84e

@ -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…
Cancel
Save