From 76093f252c442a67e5691b47d4987f890d1a9fdd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 1 Jun 2018 08:19:23 +1000 Subject: [PATCH] Change env vars that are lists to use the general list syntax --- src/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cc b/src/main.cc index 8a7da2da..c5c962a0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -94,7 +94,7 @@ static const EnvVarDesc builtin_env_vars[] = { { "buflist", false, [](StringView name, const Context& context) { return join(BufferManager::instance() | - transform(&Buffer::display_name), ':'); } + transform(&Buffer::display_name) | transform(quote), ' ', false); } }, { "buf_line_count", false, [](StringView name, const Context& context) -> String @@ -115,7 +115,7 @@ static const EnvVarDesc builtin_env_vars[] = { { }, { "selections", false, [](StringView name, const Context& context) - { return join(context.selections_content(), ':'); } + { return join(context.selections_content() | transform(quote), ' ', false); } }, { "runtime", false, [](StringView name, const Context& context) @@ -157,7 +157,7 @@ static const EnvVarDesc builtin_env_vars[] = { { [](StringView name, const Context& context) -> String { return join(ClientManager::instance() | transform([](const std::unique_ptr& c) -> const String& - { return c->context().name(); }), ':'); } + { return c->context().name(); }), ' ', false); } }, { "modified", false, [](StringView name, const Context& context) -> String @@ -205,7 +205,7 @@ static const EnvVarDesc builtin_env_vars[] = { { }, { "user_modes", false, [](StringView name, const Context& context) -> String - { return join(context.keymaps().user_modes(), ':'); } + { return join(context.keymaps().user_modes(), ' ', false); } } };