diff options
Diffstat (limited to 'src/nix/command.cc')
-rw-r--r-- | src/nix/command.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/command.cc b/src/nix/command.cc index 4520309cd..de761166b 100644 --- a/src/nix/command.cc +++ b/src/nix/command.cc @@ -85,7 +85,7 @@ void StorePathCommand::run(ref<Store> store) Strings editorFor(const Pos & pos) { - auto editor = getEnv("EDITOR", "cat"); + auto editor = getEnv("EDITOR").value_or("cat"); auto args = tokenizeString<Strings>(editor); if (pos.line > 0 && ( editor.find("emacs") != std::string::npos || |