diff options
Diffstat (limited to 'third_party/nix/src/nix/edit.cc')
-rw-r--r-- | third_party/nix/src/nix/edit.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/edit.cc b/third_party/nix/src/nix/edit.cc index 958e8aec49cc..a18cba292e00 100644 --- a/third_party/nix/src/nix/edit.cc +++ b/third_party/nix/src/nix/edit.cc @@ -55,7 +55,8 @@ struct CmdEdit final : InstallableCommand { auto editor = getEnv("EDITOR", "cat"); - Strings args = absl::StrSplit(editor, absl::ByAnyChar(" \t\n\r")); + Strings args = + absl::StrSplit(editor, absl::ByAnyChar(" \t\n\r"), absl::SkipEmpty()); if (editor.find("emacs") != std::string::npos || editor.find("nano") != std::string::npos || |