diff --git a/src/commands.cc b/src/commands.cc index a1972be84..19c02cf67 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -771,7 +771,7 @@ const CommandDesc add_highlighter_cmd = { throw runtime_error("no parent in path"); auto auto_name = [](ConstArrayView params) { - return join(params | transform([](StringView s) { return replace(s, "/", ""); }), ""); + return join(params | transform([](StringView s) { return replace(s, "/", ""); }), "_"); }; String name{slash.base(), path.end()};