Chromium Code Reviews| Index: tools/gn/command_args.cc |
| diff --git a/tools/gn/command_args.cc b/tools/gn/command_args.cc |
| index e2f4a9c09a7f11acab47339bbc0163ee60ec49d3..80ed1c27b0ef51f8fe6a33d887e9fa88469d0d98 100644 |
| --- a/tools/gn/command_args.cc |
| +++ b/tools/gn/command_args.cc |
| @@ -199,6 +199,8 @@ bool RunEditor(const base::FilePath& file_to_edit) { |
| // Prefer $VISUAL, then $EDITOR, then vi. |
|
brettw
2014/10/15 21:11:20
Maybe just remove this comment?
|
| const char* editor_ptr = getenv("VISUAL"); |
| if (!editor_ptr) |
| + editor_ptr = getenv("GN_EDITOR"); |
| + if (!editor_ptr) |
| editor_ptr = getenv("EDITOR"); |
| if (!editor_ptr) |
| editor_ptr = "vi"; |