Jelajahi Sumber

Prefer 'editor' on a system that supports alternatives.

Niels Keurentjes 9 tahun lalu
induk
melakukan
93ce87a84e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Composer/Command/ConfigCommand.php

+ 1 - 1
src/Composer/Command/ConfigCommand.php

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