Prefer 'editor' on a system that supports alternatives.

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

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