Merge remote-tracking branch 'lenormf/fix-3410'

This commit is contained in:
Maxime Coste 2020-04-13 11:09:08 +10:00
commit 91e3a58a3a

View File

@ -312,7 +312,7 @@ static const EnvVarDesc builtin_env_vars[] = { {
"selections_length", false,
[](StringView name, const Context& context) -> Vector<String>
{ return context.selections() |
transform([&](const Selection& s) {
transform([&](const Selection& s) -> String {
return to_string(char_length(context.buffer(), s));
}) | gather<Vector<String>>(); }
}, {