diff --git a/src/main.cc b/src/main.cc index f16e9f9a..48d4e3ab 100644 --- a/src/main.cc +++ b/src/main.cc @@ -312,7 +312,7 @@ static const EnvVarDesc builtin_env_vars[] = { { "selections_length", false, [](StringView name, const Context& context) -> Vector { return context.selections() | - transform([&](const Selection& s) { + transform([&](const Selection& s) -> String { return to_string(char_length(context.buffer(), s)); }) | gather>(); } }, {